Class: Devise::G5::AuthUserUpdater
- Inherits:
-
Object
- Object
- Devise::G5::AuthUserUpdater
- Defined in:
- lib/devise_g5_authenticatable/g5/auth_user_updater.rb
Overview
Update user data on G5 Auth server
Instance Attribute Summary collapse
-
#model ⇒ Object
readonly
Returns the value of attribute model.
Instance Method Summary collapse
-
#initialize(authenticatable_model) ⇒ AuthUserUpdater
constructor
A new instance of AuthUserUpdater.
- #update ⇒ Object
Constructor Details
#initialize(authenticatable_model) ⇒ AuthUserUpdater
Returns a new instance of AuthUserUpdater.
11 12 13 |
# File 'lib/devise_g5_authenticatable/g5/auth_user_updater.rb', line 11 def initialize(authenticatable_model) @model = authenticatable_model end |
Instance Attribute Details
#model ⇒ Object (readonly)
Returns the value of attribute model.
9 10 11 |
# File 'lib/devise_g5_authenticatable/g5/auth_user_updater.rb', line 9 def model @model end |
Instance Method Details
#update ⇒ Object
15 16 17 |
# File 'lib/devise_g5_authenticatable/g5/auth_user_updater.rb', line 15 def update update_auth_user if credentials_changed? end |