lib/spree_gateway/engine.rb in spree_gateway-3.3.7 vs lib/spree_gateway/engine.rb in spree_gateway-3.4.0
- old
+ new
@@ -28,25 +28,24 @@
app.config.spree.payment_methods << Spree::Gateway::Quickpay
app.config.spree.payment_methods << Spree::Gateway::SagePay
app.config.spree.payment_methods << Spree::Gateway::SecurePayAU
app.config.spree.payment_methods << Spree::Gateway::SpreedlyCoreGateway
app.config.spree.payment_methods << Spree::Gateway::StripeGateway
+ app.config.spree.payment_methods << Spree::Gateway::StripeElementsGateway
+ app.config.spree.payment_methods << Spree::Gateway::StripeApplePayGateway
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',
]
- Dir.glob(File.join(File.dirname(__FILE__), "../../controllers/frontend/*/*_decorator*.rb")) do |c|
- Rails.configuration.cache_classes ? require(c) : load(c)
- end
end
- Dir.glob(File.join(File.dirname(__FILE__), '../../lib/active_merchant/**/*_decorator*.rb')) do |c|
+ Dir.glob(File.join(File.dirname(__FILE__), '../../app/**/spree/*_decorator*.rb')) do |c|
Rails.application.config.cache_classes ? require(c) : load(c)
end
end
def self.backend_available?
@@ -59,11 +58,12 @@
if self.backend_available?
paths["app/views"] << "lib/views/backend"
end
+ paths['app/controllers'] << 'lib/controllers'
+
if self.frontend_available?
- paths["app/controllers"] << "lib/controllers/frontend"
paths["app/views"] << "lib/views/frontend"
end
config.to_prepare &method(:activate).to_proc
end