Rails 3 - Devise : How to skip the 'current_password' when editing a registration?

前端 未结 5 2007
无人共我
无人共我 2021-01-30 18:53

I\'ve implemented omniauth with my devise model, so I can authenticate using other services. Password is not necessary anymore for my model, as users can authenticate using twit

5条回答
  •  梦如初夏
    2021-01-30 19:40

    there is an easier answer, i do not know when devise first had this method but by just adding

    Model.update_without_password(params)

    it will update attributes without requiring current password.

提交回复
热议问题