Generated scaffolding for model via Rails

This commit is contained in:
Prelang Builder authored and u7482 committed 2014-02-27 23:58:50 +00:00
1 parent 852bf723ef
commit f3c0c64477
1 file changed
+1
+1
View File
@@ -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