lib/spree_auth.rb in spree_auth-0.30.0.beta1 vs lib/spree_auth.rb in spree_auth-0.30.0

- old
+ new

@@ -1,18 +1,16 @@ require 'spree_core' - -require 'devise' -require 'devise/orm/active_record' +require 'authlogic' require 'cancan' require 'spree/auth_user' require 'spree/auth/config' module SpreeAuth 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.env.production? ? require(c) : load(c) end end config.to_prepare &method(:activate).to_proc end end