80a80ef2bd
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. |
||
---|---|---|
.. | ||
templates | ||
actions.rb | ||
advanced_user_narrative.rb | ||
base.rb | ||
certificate_generator.rb | ||
dice.rb | ||
magic_8_ball.rb | ||
new_user_narrative.rb | ||
quote_generator.rb | ||
track_selector.rb | ||
welcome_post_type_site_setting.rb |