Module: Devise::Models::SamlAuthenticatable

Extended by:
ActiveSupport::Concern
Defined in:
lib/devise_saml_authenticatable/model.rb

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#update_with_password(params = {}) ⇒ Object



14
15
16
17
# File 'lib/devise_saml_authenticatable/model.rb', line 14

def update_with_password(params={})
  params.delete(:current_password)
  self.update_without_password(params)
end

#update_without_password(params = {}) ⇒ Object



19
20
21
22
23
24
25
# File 'lib/devise_saml_authenticatable/model.rb', line 19

def update_without_password(params={})
  params.delete(:password)
  params.delete(:password_confirmation)

  result = update_attributes(params)
  result
end