discourse/plugins/discourse-narrative-bot
Blake Erickson 80a80ef2bd DEV: Use method instead of constant for discobot badge names
This change refactors the code a bit so that a plugin could easily
replace which badge is awarded when completing the discobot new user
tutorial and advanced tutorial.

By adding a static method and putting the BADGE_NAME constant inside of
that method we can simply call that method now instead of the constant.
A plugin could then `class_eval` that method and replace it with
whatever badge name they choose. This is way cleaner than having the
plugin change the frozen constant! eeek.
2020-04-09 20:46:51 -06:00
..
assets/javascripts/initializers REFACTOR: Move `app-events:main` to `service:app-events` (#8152) 2019-10-04 10:06:08 -04:00
autoload/jobs DEV: Use method instead of constant for discobot badge names 2020-04-09 20:46:51 -06:00
config FIX: Narrative bot not working for bookmarks with reminders (#9289) 2020-03-27 12:17:18 +10:00
db/fixtures DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
lib/discourse_narrative_bot DEV: Use method instead of constant for discobot badge names 2020-04-09 20:46:51 -06:00
public/images remove unnecessary symlink 2019-11-29 22:23:43 +01:00
spec DEV: Use method instead of constant for discobot badge names 2020-04-09 20:46:51 -06:00
plugin.rb FIX: Narrative bot not working for bookmarks with reminders (#9289) 2020-03-27 12:17:18 +10:00