Module: Empower::OmniauthHelper
- Defined in:
- app/helpers/empower/omniauth_helper.rb
Instance Method Summary collapse
- #facebook_login_button(text = 'Sign in with Facebook') ⇒ Object
- #google_login_button(text = 'Sign in with Google') ⇒ Object
- #twitter_login_button(text = 'Sign in with Twitter') ⇒ Object
Instance Method Details
#facebook_login_button(text = 'Sign in with Facebook') ⇒ Object
4 5 6 7 8 9 10 |
# File 'app/helpers/empower/omniauth_helper.rb', line 4 def (text = 'Sign in with Facebook') link_to( text, main_app.(:facebook), :class => 'button facebook' ) unless user_signed_in? end |
#google_login_button(text = 'Sign in with Google') ⇒ Object
12 13 14 15 16 17 18 |
# File 'app/helpers/empower/omniauth_helper.rb', line 12 def (text = 'Sign in with Google') link_to( text, main_app.(:google_oauth2), :class => 'button google' ) unless user_signed_in? end |
#twitter_login_button(text = 'Sign in with Twitter') ⇒ Object
20 21 22 23 24 25 26 |
# File 'app/helpers/empower/omniauth_helper.rb', line 20 def (text = 'Sign in with Twitter') link_to( text, main_app.(:twitter), :class => 'button twitter' ) unless user_signed_in? end |