forked from OpenNeo/impress
Stop using update_attributes
Idk when this got removed, but it did! Ok goodbye!
This commit is contained in:
parent
83f80facda
commit
07d2519e40
3 changed files with 6 additions and 3 deletions
|
@ -23,7 +23,8 @@ class ClosetListsController < ApplicationController
|
|||
end
|
||||
|
||||
def update
|
||||
if @closet_list.update_attributes(closet_list_params)
|
||||
@closet_list.attributes = closet_list_params
|
||||
if @closet_list.save
|
||||
save_successful!
|
||||
else
|
||||
save_failed!
|
||||
|
|
|
@ -102,7 +102,8 @@ class OutfitsController < ApplicationController
|
|||
end
|
||||
|
||||
def update
|
||||
if @outfit.update_attributes(outfit_params)
|
||||
@outfit.attributes = outfit_params
|
||||
if @outfit.save
|
||||
render :json => @outfit
|
||||
else
|
||||
render_outfit_errors
|
||||
|
|
|
@ -17,7 +17,8 @@ class UsersController < ApplicationController
|
|||
end
|
||||
|
||||
def update
|
||||
success = @user.update_attributes user_params
|
||||
@user.attributes = user_params
|
||||
success = @user.save
|
||||
respond_to do |format|
|
||||
format.html {
|
||||
if success
|
||||
|
|
Loading…
Reference in a new issue