Skip to content

Commit

Permalink
Included Spree::AuthenticationHelpers into ApplicationController in t…
Browse files Browse the repository at this point in the history
…o_prepare block
  • Loading branch information
radar committed Jun 11, 2012
1 parent 794d0f7 commit beff51c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/spree/auth/engine.rb
Expand Up @@ -12,6 +12,8 @@ def self.activate
Dir.glob(File.join(File.dirname(__FILE__), "../../../app/**/*_decorator*.rb")) do |c| Dir.glob(File.join(File.dirname(__FILE__), "../../../app/**/*_decorator*.rb")) do |c|
Rails.configuration.cache_classes ? require(c) : load(c) Rails.configuration.cache_classes ? require(c) : load(c)
end end

ApplicationController.send :include, Spree::AuthenticationHelpers
end end


config.to_prepare &method(:activate).to_proc config.to_prepare &method(:activate).to_proc
Expand Down

0 comments on commit beff51c

Please sign in to comment.