Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class User < ActiveRecord::Base
- attr_accessible :email, :name, :password
- def self.login(username, password)
- where(name: username, password: password).first
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement