Class: Visitors::OmniauthCallbacksController

Inherits:
Devise::OmniauthCallbacksController
  • Object
show all
Defined in:
app/controllers/visitors/omniauth_callbacks_controller.rb

Instance Method Summary collapse

Instance Method Details

#facebookObject

protect_from_forgery :except => [:google, :yahoo, :open_id, :facebook]



4
5
6
# File 'app/controllers/visitors/omniauth_callbacks_controller.rb', line 4

def facebook
  callback("Facebook", :find_for_facebook_oauth)
end

#failureObject



24
25
26
# File 'app/controllers/visitors/omniauth_callbacks_controller.rb', line 24

def failure
  render :file => "#{Rails.root}/public/404", :status => 404, :layout => false
end

#googleObject



8
9
10
# File 'app/controllers/visitors/omniauth_callbacks_controller.rb', line 8

def google
  callback("Google")
end

#open_idObject



16
17
18
# File 'app/controllers/visitors/omniauth_callbacks_controller.rb', line 16

def open_id
  callback("OpenID")
end

#passthruObject



20
21
22
# File 'app/controllers/visitors/omniauth_callbacks_controller.rb', line 20

def passthru
  render :file => "#{Rails.root}/public/404", :status => 404, :layout => false
end

#yahooObject



12
13
14
# File 'app/controllers/visitors/omniauth_callbacks_controller.rb', line 12

def yahoo
  callback("Yahoo")
end