From 4afdb8231e067e6a1dcaa2c0643f88156a5d6ec3 Mon Sep 17 00:00:00 2001 From: Anton Khorev Date: Mon, 25 Aug 2025 14:41:36 +0300 Subject: [PATCH] Remove unused auth button options --- app/helpers/user_helper.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/helpers/user_helper.rb b/app/helpers/user_helper.rb index 5dc77c0ea..a46ea5ad0 100644 --- a/app/helpers/user_helper.rb +++ b/app/helpers/user_helper.rb @@ -52,26 +52,26 @@ module UserHelper # External authentication support - def auth_button(provider, options = {}) + def auth_button(provider) link_to( image_tag("auth_providers/#{provider}.svg", :alt => t("application.auth_providers.#{provider}.alt"), :class => "rounded-1", :size => "36"), - auth_path(options.merge(:provider => provider)), + auth_path(:provider => provider), :method => :post, :class => "auth_button btn btn-outline-secondary border p-2", :title => t("application.auth_providers.#{provider}.title") ) end - def auth_button_preferred(provider, options = {}) + def auth_button_preferred(provider) link_to( image_tag("auth_providers/#{provider}.svg", :alt => t("application.auth_providers.#{provider}.alt"), :class => "rounded-1", :size => "36") + t("application.auth_providers.#{provider}.title"), - auth_path(options.merge(:provider => provider)), + auth_path(:provider => provider), :method => :post, :class => "auth_button btn btn-outline-secondary border py-2 px-4 d-flex gap-3 justify-content-center align-items-center", :title => t("application.auth_providers.#{provider}.title") -- 2.39.5