Skip to content

Commit

Permalink
Update merit.rb
Browse files Browse the repository at this point in the history
Fix suggested @ merit-gem#173
  • Loading branch information
bigredpen authored Jul 30, 2016
1 parent e16dfa6 commit 08b1d2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/merit.rb
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ class Engine < Rails::Engine
ActiveSupport.on_load(:action_controller) do
begin
# Load app rules on boot up
Merit::AppBadgeRules = Merit::BadgeRules.new.defined_rules
Merit::AppPointRules = Merit::PointRules.new.defined_rules
Merit::AppBadgeRules ||= Merit::BadgeRules.new.defined_rules
Merit::AppPointRules ||= Merit::PointRules.new.defined_rules
include Merit::ControllerExtensions
rescue NameError => e
# Trap NameError if installing/generating files
Expand Down

0 comments on commit 08b1d2e

Please sign in to comment.