Method: Pageflow::UserMixin#update_with_password
- Defined in:
- lib/pageflow/user_mixin.rb
#update_with_password(attributes) ⇒ Object
48 49 50 51 52 53 54 55 56 |
# File 'lib/pageflow/user_mixin.rb', line 48 def update_with_password(attributes) if needs_password?(attributes) super else # remove the virtual current_password attribute update_without_password # doesn't know how to ignore it update_without_password(attributes.except(:current_password)) end end |