Module: DataMapper::Is::Authenticatable
- Defined in:
- lib/dm-is-authenticatable/is/authenticatable.rb
Defined Under Namespace
Modules: ClassMethods, InstanceMethods
Instance Method Summary collapse
-
#is_authenticatable(options = {}) ⇒ Object
Adds the
encrypted_password property
and mixs in ClassMethods and InstanceMethods.
Instance Method Details
#is_authenticatable(options = {}) ⇒ Object
Adds the encrypted_password property
and mixs in ClassMethods
and InstanceMethods.
11 12 13 14 15 16 17 18 19 |
# File 'lib/dm-is-authenticatable/is/authenticatable.rb', line 11 def is_authenticatable(={}) # The encrypted password property :encrypted_password, DataMapper::Property::BCryptHash extend DataMapper::Is::Authenticatable::ClassMethods include DataMapper::Is::Authenticatable::InstanceMethods validates_confirmation_of :password end |