Browse files

Included Spree::AuthenticationHelpers into ApplicationController in t…

…o_prepare block
  • Loading branch information...
1 parent 794d0f7 commit beff51c403e6d38915e0b7b34412946af41ec9ff @radar radar committed Jun 11, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/spree/auth/engine.rb
View
2 lib/spree/auth/engine.rb
@@ -12,6 +12,8 @@ def self.activate
Dir.glob(File.join(File.dirname(__FILE__), "../../../app/**/*_decorator*.rb")) do |c|
Rails.configuration.cache_classes ? require(c) : load(c)
end
+
+ ApplicationController.send :include, Spree::AuthenticationHelpers
end
config.to_prepare &method(:activate).to_proc

0 comments on commit beff51c

Please sign in to comment.