Sha256: f6f9220e2c14ec5b451e7d3bc20d973d75a53de019a59b0cc4764261064936ba

Contents?: true

Size: 299 Bytes

Versions: 6

Compression:

Stored size: 299 Bytes

Contents

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
google_sign_in-1.2.1 app/helpers/google_sign_in/button_helper.rb
google_sign_in-1.2.0 app/helpers/google_sign_in/button_helper.rb
google_sign_in-1.1.2 app/helpers/google_sign_in/button_helper.rb
google_sign_in-1.1.1 app/helpers/google_sign_in/button_helper.rb
google_sign_in-1.1.0 app/helpers/google_sign_in/button_helper.rb
google_sign_in-1.0.2 app/helpers/google_sign_in/button_helper.rb