summaryrefslogtreecommitdiff
path: root/app/helpers/appearances_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/helpers/appearances_helper.rb')
-rw-r--r--app/helpers/appearances_helper.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/app/helpers/appearances_helper.rb b/app/helpers/appearances_helper.rb
index 1e8ddb9d423..de13e7a1fc2 100644
--- a/app/helpers/appearances_helper.rb
+++ b/app/helpers/appearances_helper.rb
@@ -31,10 +31,9 @@ module AppearancesHelper
end
end
- def custom_icon(icon_name, opts = {})
- opts[:size] = 16 unless opts[:size]
+ def custom_icon(icon_name, size: 16)
# We can't simply do the below, because there are some .erb SVGs.
# File.read(Rails.root.join("app/views/shared/icons/_#{icon_name}.svg")).html_safe
- render "shared/icons/#{icon_name}.svg", opts
+ render "shared/icons/#{icon_name}.svg", size: size
end
end