Sha256: 489d5fcc8ee2d3657b8813e86f498f0d965cb4cc268f3509a59df7597e7be426

Contents?: true

Size: 286 Bytes

Versions: 2

Compression:

Stored size: 286 Bytes

Contents

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
google_sign_in-1.0.1 app/helpers/google_sign_in/button_helper.rb
google_sign_in-1.0.0 app/helpers/google_sign_in/button_helper.rb