Skip to content

Commit 8215a4a

Browse files
authored
Change initialize process to be compatible with Rails 7 (#406)
1 parent 9f51547 commit 8215a4a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/spree_gateway/engine.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ class Engine < Rails::Engine
44

55
config.autoload_paths += %W(#{config.root}/lib)
66

7-
initializer "spree.gateway.payment_methods", :after => "spree.register.payment_methods" do |app|
7+
config.after_initialize do |app|
88
app.config.spree.payment_methods << Spree::Gateway::AuthorizeNet
99
app.config.spree.payment_methods << Spree::Gateway::AuthorizeNetCim
1010
app.config.spree.payment_methods << Spree::Gateway::BalancedGateway

0 commit comments

Comments
 (0)