Skip to content

Commit

Permalink
Merge pull request #4414 from nebulab/waiting-for-dev/fix_master
Browse files Browse the repository at this point in the history
Fix deprecation of active payment methods
  • Loading branch information
waiting-for-dev authored Jun 17, 2022
2 parents b4ff5ce + bc90d4c commit aa77140
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/lib/tasks/payment_method.rake
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace :payment_method do
"which happens after switching Payment Service Provider."
task deactivate_unsupported_payment_methods: :environment do
Spree::PaymentMethod.pluck(:id, :type).select do |id, type|
ActiveSupport::Dependencies.constantize(type)
type.constantize
rescue NameError
fix_payment_method_record(id, type)
end
Expand Down

0 comments on commit aa77140

Please sign in to comment.