Sha256: 7b4662cd2e6ac3201aa70a382ce9c77d814f066a9735cf93d02f353beefaa43e

Contents?: true

Size: 431 Bytes

Versions: 14

Compression:

Stored size: 431 Bytes

Contents

module AuthlogicOauth
  module Helper
    def oauth_register_button(options = {})
      oauth_button('register_with_oauth', options)
    end
    
    def oauth_login_button(options = {})
      oauth_button('login_with_oauth', options)
    end
  
  private
    def oauth_button(name, options = {})
      "<input type='submit' value='#{options[:value]}' name='#{name}' id='user_submit' class='#{options[:class]}'/>"
    end
  end
end

Version data entries

14 entries across 14 versions & 4 rubygems

Version Path
ggoodale-authlogic-oauth-1.0.8 lib/authlogic_oauth/helper.rb
raj-authlogic-oauth-1.0.10 lib/authlogic_oauth/helper.rb
raj-authlogic-oauth-1.0.8 lib/authlogic_oauth/helper.rb
heyzap-authlogic-oauth-1.0.10 lib/authlogic_oauth/helper.rb
heyzap-authlogic-oauth-1.0.9 lib/authlogic_oauth/helper.rb
heyzap-authlogic-oauth-1.0.8 lib/authlogic_oauth/helper.rb
authlogic-oauth-1.0.2 lib/authlogic_oauth/helper.rb
authlogic-oauth-1.0.3 lib/authlogic_oauth/helper.rb
authlogic-oauth-1.0.4 lib/authlogic_oauth/helper.rb
authlogic-oauth-1.0.5 lib/authlogic_oauth/helper.rb
authlogic-oauth-1.0.6 lib/authlogic_oauth/helper.rb
authlogic-oauth-1.0.7 lib/authlogic_oauth/helper.rb
authlogic-oauth-1.0.8 lib/authlogic_oauth/helper.rb
authlogic-oauth-1.0.1 lib/authlogic_oauth/helper.rb