remove better html html_attributes

This commit is contained in:
Alex Turchyn
2023-06-11 15:51:52 +03:00
parent 21f684ed4a
commit 878af5d250
4 changed files with 4 additions and 6 deletions
+2 -2
View File
@@ -24,7 +24,7 @@ class ApplicationController < ActionController::Base
render_to_string(partial: 'shared/button_title', locals: { title:, disabled_with:, icon: })
end
def svg_icon(icon_name, options = {})
render_to_string(partial: "icons/#{icon_name}", locals: { attibutes: options })
def svg_icon(icon_name, class: '')
render_to_string(partial: "icons/#{icon_name}", locals: { class: })
end
end