diff --git a/core/app/models/spree/payment_method.rb b/core/app/models/spree/payment_method.rb index 4d2c09b1432..633f9c67ad7 100644 --- a/core/app/models/spree/payment_method.rb +++ b/core/app/models/spree/payment_method.rb @@ -184,7 +184,7 @@ def partial_name # If method_type has been overridden, call it and return the value, otherwise return nil def deprecated_method_type_override if method(:method_type).owner != Spree::PaymentMethod - Spree::Deprecation.warn "overriding PaymentMethod#method_type is deprecated and will be removed from Solidus 3.0 (override partial_name instead)", caller + Spree::Deprecation.warn "#{method(:method_type).owner} is overriding PaymentMethod#method_type. This is deprecated and will be removed from Solidus 3.0 (override partial_name instead).", caller[1..-1] method_type end end