Skip to content

Commit

Permalink
place the before_action on the right class
Browse files Browse the repository at this point in the history
  • Loading branch information
blaknite committed May 18, 2016
1 parent 89bb550 commit 55d1882
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/blush/railtie.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ class Railtie < Rails::Railtie
ActiveSupport.on_load :action_controller do
self.class_eval do
include Blush::ViewContext

before_action :set_blush_helpers
end
end
end
Expand All @@ -12,8 +14,6 @@ class Railtie < Rails::Railtie
ActiveSupport.on_load :action_mailer do
self.class_eval do
include Blush::ViewContext

before_filter :set_blush_helpers
end
end
end
Expand Down

0 comments on commit 55d1882

Please sign in to comment.