Module: Passport::Oauth::ViewHelper
- Defined in:
- lib/passport/oauth/helper.rb
Instance Method Summary collapse
- #oauth_input(options = {}) ⇒ Object
- #oauth_login_hidden_input ⇒ Object
- #oauth_register_hidden_input ⇒ Object
Instance Method Details
#oauth_input(options = {}) ⇒ Object
12 13 14 |
# File 'lib/passport/oauth/helper.rb', line 12 def oauth_input( = {}) tag(:input, :type => "hidden", :name => "authentication_type", :value => [:type]) end |
#oauth_login_hidden_input ⇒ Object
8 9 10 |
# File 'lib/passport/oauth/helper.rb', line 8 def oauth_login_hidden_input oauth_input(:type => "session") end |
#oauth_register_hidden_input ⇒ Object
4 5 6 |
# File 'lib/passport/oauth/helper.rb', line 4 def oauth_register_hidden_input oauth_input(:type => "user") end |