lib/fauna/model/user.rb in fauna-0.2.5 vs lib/fauna/model/user.rb in fauna-0.2.6

- old
+ new

@@ -3,18 +3,18 @@ class User < Fauna::Model class Config < Fauna::Resource; end def self.self - find("users/self") + find_by_ref("users/self") end def self.find_by_email(email) - find("users/email/#{email}") + find_by_ref("users/email/#{email}") end def config - Fauna::User::Config.find("#{ref}/config") + Fauna::User::Config.find_by_ref("#{ref}/config") end # set on user create def email; struct['email']; end def password; struct['password']; end