Skip to content
This repository has been archived by the owner on Jan 19, 2022. It is now read-only.

Commit

Permalink
class method, refs #87
Browse files Browse the repository at this point in the history
  • Loading branch information
obfuscurity committed May 12, 2013
1 parent 417f9ee commit 1d97d45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/descartes/models/users.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def before_update
self.updated_at = Time.now
end

def find_or_create_by_email(email)
def self.find_or_create_by_email(email)
User.filter(:email => email).first or User.new(:email => email).save
end
end

0 comments on commit 1d97d45

Please sign in to comment.