Module: Devise::Models::PasswordExpirable
- Defined in:
- lib/devise_security_extension/models/password_expirable.rb
Overview
PasswordExpirable takes care of change password after
Defined Under Namespace
Modules: ClassMethods, InstanceMethods
Class Method Summary collapse
-
.included(base) ⇒ Object
:nodoc:.
Class Method Details
.included(base) ⇒ Object
:nodoc:
9 10 11 12 13 14 15 16 |
# File 'lib/devise_security_extension/models/password_expirable.rb', line 9 def self.included(base) # :nodoc: base.extend ClassMethods base.class_eval do before_save :update_password_changed include InstanceMethods end end |