lib/spree_gateway/engine.rb in spree_gateway-3.4.0 vs lib/spree_gateway/engine.rb in spree_gateway-3.4.1
- old
+ new
@@ -35,15 +35,9 @@
app.config.spree.payment_methods << Spree::Gateway::UsaEpayTransaction
app.config.spree.payment_methods << Spree::Gateway::Worldpay
end
def self.activate
- if SpreeGateway::Engine.frontend_available?
- Rails.application.config.assets.precompile += [
- 'lib/assets/javascripts/spree/frontend/spree_gateway.js',
- 'lib/assets/stylesheets/spree/frontend/spree_gateway.css',
- ]
- end
Dir.glob(File.join(File.dirname(__FILE__), '../../app/**/spree/*_decorator*.rb')) do |c|
Rails.application.config.cache_classes ? require(c) : load(c)
end
end