Module: Passport::Oauth::ViewHelper

Defined in:
lib/passport/oauth/helper.rb

Instance Method Summary collapse

Instance Method Details

#oauth_input(options = {}) ⇒ Object



12
13
14
# File 'lib/passport/oauth/helper.rb', line 12

def oauth_input(options = {})
  tag(:input, :type => "hidden", :name => "authentication_type", :value => options[:type])
end

#oauth_login_hidden_inputObject



8
9
10
# File 'lib/passport/oauth/helper.rb', line 8

def 
  oauth_input(:type => "session")
end

#oauth_register_hidden_inputObject



4
5
6
# File 'lib/passport/oauth/helper.rb', line 4

def oauth_register_hidden_input
  oauth_input(:type => "user")
end