Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def change_my_password!(email, new_password)
- account = Account.where(:email => email).first
- raise 'ZOMGZ, Really?' if account.blank?
- account.password = 'cheese'
- account.save!
- end
- change_my_password!('karl@disneyland.com', 'cheese_fun_fun183')
Add Comment
Please, Sign In to add comment