Generated scaffolding for model via Rails
This commit is contained in:
1 parent
852bf723ef
commit
f3c0c64477
1 file changed
+1
@@ -6,6 +6,7 @@ class User < ActiveRecord::Base
|
|||||||
devise :omniauthable
|
devise :omniauthable
|
||||||
|
|
||||||
#->Prelang (user_login/devise)
|
#->Prelang (user_login/devise)
|
||||||
|
has_many :surveys
|
||||||
def self.find_for_facebook_oauth(auth, signed_in_resource=nil)
|
def self.find_for_facebook_oauth(auth, signed_in_resource=nil)
|
||||||
user = User.where(:provider => auth.provider, :uid => auth.uid).first
|
user = User.where(:provider => auth.provider, :uid => auth.uid).first
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user