diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2023-10-12 14:20:00 +0000 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2023-10-12 14:20:00 +0000 |
commit | 88c81b44eae6d34753febe441810ddb20f6555fc (patch) | |
tree | e8b8ed7130dd75e23759c1067a85b5397b825ca2 /app/controllers/admin/updates_controller.rb | |
parent | 4c81ca70666cfcf89a5de9ab9d6de063b3a9301a (diff) | |
download | thoughts-88c81b44eae6d34753febe441810ddb20f6555fc.tar.gz thoughts-88c81b44eae6d34753febe441810ddb20f6555fc.tar.bz2 thoughts-88c81b44eae6d34753febe441810ddb20f6555fc.zip |
Fix use of update_attributes
Diffstat (limited to 'app/controllers/admin/updates_controller.rb')
-rw-r--r-- | app/controllers/admin/updates_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/admin/updates_controller.rb b/app/controllers/admin/updates_controller.rb index 9bf9caf..226daa5 100644 --- a/app/controllers/admin/updates_controller.rb +++ b/app/controllers/admin/updates_controller.rb | |||
@@ -30,7 +30,7 @@ class Admin::UpdatesController < Admin::AdminController | |||
30 | @stream = Stream.find(params[:stream_id]) | 30 | @stream = Stream.find(params[:stream_id]) |
31 | @update = Update.find(params[:id]) | 31 | @update = Update.find(params[:id]) |
32 | 32 | ||
33 | if @update.update_attributes(update_params) | 33 | if @update.update(update_params) |
34 | flash.notice = "Update updated successfully!" | 34 | flash.notice = "Update updated successfully!" |
35 | else | 35 | else |
36 | flash.alert = "Error updating update." | 36 | flash.alert = "Error updating update." |