From 0d7e24e554af439094ddc49b9f522fd82622d99c Mon Sep 17 00:00:00 2001 From: Hugo Daniel Date: Thu, 20 Sep 2018 14:34:10 +0200 Subject: [PATCH] Change to new ruby hash syntax --- app/views/spree/admin/shipping_methods/new.html.haml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/views/spree/admin/shipping_methods/new.html.haml b/app/views/spree/admin/shipping_methods/new.html.haml index 0b5c0507509..eedf2552965 100644 --- a/app/views/spree/admin/shipping_methods/new.html.haml +++ b/app/views/spree/admin/shipping_methods/new.html.haml @@ -2,15 +2,15 @@ = Spree.t(:new_shipping_method) - content_for :page_actions do %li - = button_link_to Spree.t(:back_to_shipping_methods_list), spree.admin_shipping_methods_path, :icon => 'icon-arrow-left' + = button_link_to Spree.t(:back_to_shipping_methods_list), spree.admin_shipping_methods_path, icon: 'icon-arrow-left' %div - = render :partial => 'spree/shared/error_messages', :locals => { :target => @shipping_method } + = render partial: 'spree/shared/error_messages', locals: { target: @shipping_method } %div = form_for [:admin, @shipping_method] do |f| %fieldset.no-border-top - = render :partial => 'form', :locals => { :f => f } + = render partial: 'form', locals: { f: f } .one.column   - = render :partial => 'spree/admin/shared/hubs_sidebar', :locals => { f: f, klass: :shipping_method } + = render partial: 'spree/admin/shared/hubs_sidebar', locals: { f: f, klass: :shipping_method } .clear %div - = render :partial => 'spree/admin/shared/new_resource_links' + = render partial: 'spree/admin/shared/new_resource_links'