app/controllers/cas/sites/users_controller.rb in cas-cms-0.1.3 vs app/controllers/cas/sites/users_controller.rb in cas-cms-1.0.0.alpha1
- old
+ new
@@ -34,10 +34,10 @@
@user.site_ids = user_params[:site_ids]
if user_params[:password].blank? && user_params[:password_confirmation].blank?
without_password = user_params.except(:password, :password_confirmation)
success = @user.update_without_password(without_password)
else
- success = @user.update_attributes(user_params)
+ success = @user.update(user_params)
end
if success
redirect_to site_users_url(@site)
else