Skip to content

Commit

Permalink
Merge pull request #2592 from jhawthorn/button_frozen_string
Browse files Browse the repository at this point in the history
Avoid frozen string error in button helper
  • Loading branch information
kennyadsl authored Feb 22, 2018
2 parents dddf5a8 + d861ea5 commit bf7831f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/app/helpers/spree/admin/navigation_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def button(text, icon_name = nil, button_type = 'submit', options = {})
class_names = "button"
if icon_name
Spree::Deprecation.warn "Using icon_name arg is deprecated. Icons could not be visible in future versions.", caller
class_names.prepend "fa fa-#{icon_name} "
class_names = "fa fa-#{icon_name} #{class_names}"
end
button_tag(text, options.merge(type: button_type, class: class_names))
end
Expand Down

0 comments on commit bf7831f

Please sign in to comment.