Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class User
- def self.login(username, password)
- find(:first, :conditions => ["username = ? AND password = ?", username, password])
- rescue
- nil
- end
- end
- require 'parse_tree'
- p ParseTree.translate(User)
Add Comment
Please, Sign In to add comment