Module: Empower::OmniauthHelper

Defined in:
app/helpers/empower/omniauth_helper.rb

Instance Method Summary collapse

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.user_omniauth_authorize_path(: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.user_omniauth_authorize_path(: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.user_omniauth_authorize_path(:twitter),
    :class => 'button twitter'
  ) unless user_signed_in?
end