Skip to content

Commit

Permalink
Redirect_to :back changed to redirect_back
Browse files Browse the repository at this point in the history
  • Loading branch information
Bramjetten committed Jul 29, 2017
1 parent 86ee307 commit 05ee650
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions app/controllers/spina/admin/accounts_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,8 @@ def edit
end

def update
if current_account.update_attributes(account_params)
redirect_to :back
else
redirect_to :back
end
current_account.update_attributes(account_params)
redirect_back fallback_location: spina.edit_admin_account_path
end

def analytics
Expand Down

0 comments on commit 05ee650

Please sign in to comment.