diff --git a/lib/spree_gateway/engine.rb b/lib/spree_gateway/engine.rb index c56f3994..95ca7ad4 100644 --- a/lib/spree_gateway/engine.rb +++ b/lib/spree_gateway/engine.rb @@ -4,7 +4,7 @@ class Engine < Rails::Engine config.autoload_paths += %W(#{config.root}/lib) - initializer "spree.gateway.payment_methods", :after => "spree.register.payment_methods" do |app| + config.after_initialize do |app| app.config.spree.payment_methods << Spree::Gateway::AuthorizeNet app.config.spree.payment_methods << Spree::Gateway::AuthorizeNetCim app.config.spree.payment_methods << Spree::Gateway::BalancedGateway