Class: OmniAuth::Strategies::Standalone::Form

Inherits:
Object
  • Object
show all
Defined in:
lib/omniauth/strategies/standalone/form.rb

Direct Known Subclasses

SignInForm, SignUpForm

Instance Method Summary collapse

Constructor Details

#initialize(fields, callback_path) ⇒ Form

Returns a new instance of Form.



7
8
9
10
# File 'lib/omniauth/strategies/standalone/form.rb', line 7

def initialize(fields, callback_path)
  @fields = fields
  @callback_path = callback_path
end

Instance Method Details

#renderObject



12
13
14
15
16
17
# File 'lib/omniauth/strategies/standalone/form.rb', line 12

def render
  add_fields_to_form
  add_submit_button_to_form
  add_opposite_auth_link
  to_html
end