Skip to content

Commit

Permalink
Change way of checking rails env.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kavrus committed Oct 24, 2013
1 parent b4c0dae commit ac833ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/spree_robokassa.rb
Expand Up @@ -8,7 +8,7 @@ class Engine < Rails::Engine

def self.activate
Dir.glob(File.join(File.dirname(__FILE__), "../app/**/*_decorator*.rb")) do |c|
Rails.env.production? ? require(c) : load(c)
Rails.application.config.cache_classes ? require(c) : load(c)
end
Gateway::Robokassa.register
end
Expand Down

0 comments on commit ac833ac

Please sign in to comment.