remove better html html_attributes

This commit is contained in:
Alex Turchyn committed 2023-06-11 15:51:52 +03:00
1 parent 21f684ed4a
commit 878af5d250
4 files changed
+4 -6

No files matched your search

+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