diff --git a/api/app/views/spree/api/payments/source_views/_storecredit.json.jbuilder b/api/app/views/spree/api/payments/source_views/_store_credit.json.jbuilder similarity index 100% rename from api/app/views/spree/api/payments/source_views/_storecredit.json.jbuilder rename to api/app/views/spree/api/payments/source_views/_store_credit.json.jbuilder diff --git a/api/spec/requests/spree/api/orders_controller_spec.rb b/api/spec/requests/spree/api/orders_controller_spec.rb index 994ac4a1ee1..b2791b59384 100644 --- a/api/spec/requests/spree/api/orders_controller_spec.rb +++ b/api/spec/requests/spree/api/orders_controller_spec.rb @@ -361,7 +361,7 @@ module Spree it 'renders the payment source view for store credit' do subject - expect(response).to render_template partial: 'spree/api/payments/source_views/_storecredit' + expect(response).to render_template partial: 'spree/api/payments/source_views/_store_credit' end end end diff --git a/backend/app/views/spree/admin/payments/source_forms/_storecredit.html.erb b/backend/app/views/spree/admin/payments/source_forms/_store_credit.html.erb similarity index 100% rename from backend/app/views/spree/admin/payments/source_forms/_storecredit.html.erb rename to backend/app/views/spree/admin/payments/source_forms/_store_credit.html.erb diff --git a/backend/app/views/spree/admin/payments/source_views/_storecredit.html.erb b/backend/app/views/spree/admin/payments/source_views/_store_credit.html.erb similarity index 100% rename from backend/app/views/spree/admin/payments/source_views/_storecredit.html.erb rename to backend/app/views/spree/admin/payments/source_views/_store_credit.html.erb diff --git a/core/app/models/spree/payment_method.rb b/core/app/models/spree/payment_method.rb index c2d9d20aea5..b3ac63b1a14 100644 --- a/core/app/models/spree/payment_method.rb +++ b/core/app/models/spree/payment_method.rb @@ -196,7 +196,7 @@ def display_on # The view that represents your payment method on orders in the backend # def partial_name - deprecated_method_type_override || type.demodulize.downcase + deprecated_method_type_override || type.demodulize.underscore end # :nodoc: