lib/solidus_nexio/engine.rb in solidus_nexio-0.3.3 vs lib/solidus_nexio/engine.rb in solidus_nexio-0.3.4
- old
+ new
@@ -25,9 +25,11 @@
::Spree::PermittedAttributes.source_attributes.push(:encrypted_number)
SolidusNexio::Engine.routes.default_url_options = app.routes.default_url_options
end
unless Rails.env.production?
- ActiveMerchant::Billing::NexioGateway.logger = Rails.logger
+ initializer 'solidus_nexio.setup_gateway_logger' do
+ ActiveMerchant::Billing::NexioGateway.logger = Rails.logger
+ end
end
end
end