Skip to content

Commit

Permalink
Change initialize process to be compatible with Rails 7 (spree#406)
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianryt authored Jul 10, 2022
1 parent 9f51547 commit 8215a4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/spree_gateway/engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8215a4a

Please sign in to comment.