module DataMapper::Is::Authenticatable
Public Instance Methods
is_authenticatable(options={})
click to toggle source
Adds the ‘encrypted_password property` and mixs in {ClassMethods} and {InstanceMethods}.
# File lib/dm-is-authenticatable/is/authenticatable.rb, line 11 def is_authenticatable(options={}) # The encrypted password property :encrypted_password, DataMapper::Property::BCryptHash extend DataMapper::Is::Authenticatable::ClassMethods include DataMapper::Is::Authenticatable::InstanceMethods validates_confirmation_of :password end