Module: GoogleSignIn::ButtonHelper

Defined in:
app/helpers/google_sign_in/button_helper.rb

Instance Method Summary collapse

Instance Method Details

#google_sign_in_button(text = nil, proceed_to:, **options, &block) ⇒ Object



2
3
4
5
6
# File 'app/helpers/google_sign_in/button_helper.rb', line 2

def (text = nil, proceed_to:, **options, &block)
  form_with url: .authorization_path, local: true do
    hidden_field_tag(:proceed_to, proceed_to, id: nil) + button_tag(text, name: nil, **options, &block)
  end
end