Sha256: 3ca8afa8fb1637171e504f400325559cd4adef70ebec347a3a4741091e42e26c

Contents?: true

Size: 391 Bytes

Versions: 1

Compression:

Stored size: 391 Bytes

Contents

module Passport
  module Oauth
    module ViewHelper
      def oauth_register_hidden_input
        oauth_input(:type => "user")
      end
  
      def oauth_login_hidden_input
        oauth_input(:type => "session")
      end
  
      def oauth_input(options = {})
        tag(:input, :type => "hidden", :name => "authentication_type", :value => options[:type])
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
passport-0.1.1 lib/passport/oauth/helper.rb