diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 04eab55f..974ba177 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -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 diff --git a/app/views/icons/_loader.html.erb b/app/views/icons/_loader.html.erb index 01867c9b..d85132d0 100644 --- a/app/views/icons/_loader.html.erb +++ b/app/views/icons/_loader.html.erb @@ -1,4 +1,4 @@ - xmlns="http://www.w3.org/2000/svg" width="44" height="44" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> + diff --git a/app/views/icons/_save.html.erb b/app/views/icons/_save.html.erb index ecede00a..3a59fc2c 100644 --- a/app/views/icons/_save.html.erb +++ b/app/views/icons/_save.html.erb @@ -1,4 +1,4 @@ - xmlns="http://www.w3.org/2000/svg" width="44" height="44" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> + diff --git a/config/initializers/better_html.rb b/config/initializers/better_html.rb index ff82aedb..9991c0c4 100644 --- a/config/initializers/better_html.rb +++ b/config/initializers/better_html.rb @@ -1,7 +1,5 @@ # frozen_string_literal: true -ActionView::Helpers.include(BetterHtml::Helpers) - if defined?(BetterHtml) BetterHtml.configure do |config| config.template_exclusion_filter = ->(filename) { filename.include?('/gems/') }