lib/padrino-admin/generators/templates/account/mongomapper.rb.tt in padrino-admin-0.9.10 vs lib/padrino-admin/generators/templates/account/mongomapper.rb.tt in padrino-admin-0.9.11

- old
+ new

@@ -1,5 +1,7 @@ +require 'digest/sha1' + class Account include MongoMapper::Document attr_accessor :password # Keys @@ -31,10 +33,10 @@ account = first(:email => email) if email.present? account && account.password_clean == password ? account : nil end ## - # This method is used for retrive the original password. + # This method is used to retrieve the original password. # def password_clean crypted_password.decrypt(salt) end \ No newline at end of file