From 88c81b44eae6d34753febe441810ddb20f6555fc Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Thu, 12 Oct 2023 14:20:00 +0000 Subject: Fix use of update_attributes --- app/controllers/admin/updates_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/controllers/admin/updates_controller.rb') 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 @stream = Stream.find(params[:stream_id]) @update = Update.find(params[:id]) - if @update.update_attributes(update_params) + if @update.update(update_params) flash.notice = "Update updated successfully!" else flash.alert = "Error updating update." -- cgit 1.4.1