about summary refs log tree commit diff stats
path: root/app/controllers
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2023-10-12 14:20:00 +0000
committerStar Rauchenberger <fefferburbia@gmail.com>2023-10-12 14:20:00 +0000
commit88c81b44eae6d34753febe441810ddb20f6555fc (patch)
treee8b8ed7130dd75e23759c1067a85b5397b825ca2 /app/controllers
parent4c81ca70666cfcf89a5de9ab9d6de063b3a9301a (diff)
downloadthoughts-88c81b44eae6d34753febe441810ddb20f6555fc.tar.gz
thoughts-88c81b44eae6d34753febe441810ddb20f6555fc.tar.bz2
thoughts-88c81b44eae6d34753febe441810ddb20f6555fc.zip
Fix use of update_attributes
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/admin/games_controller.rb2
-rw-r--r--app/controllers/admin/links_controller.rb2
-rw-r--r--app/controllers/admin/streams_controller.rb2
-rw-r--r--app/controllers/admin/updates_controller.rb2
4 files changed, 4 insertions, 4 deletions
diff --git a/app/controllers/admin/games_controller.rb b/app/controllers/admin/games_controller.rb index ee5fe59..2da1e95 100644 --- a/app/controllers/admin/games_controller.rb +++ b/app/controllers/admin/games_controller.rb
@@ -34,7 +34,7 @@ class Admin::GamesController < Admin::AdminController
34 def update 34 def update
35 @game = Game.find(params[:id]) 35 @game = Game.find(params[:id])
36 36
37 if @game.update_attributes(game_params) 37 if @game.update(game_params)
38 flash.notice = "Game updated successfully!" 38 flash.notice = "Game updated successfully!"
39 else 39 else
40 flash.alert = "Error updating game." 40 flash.alert = "Error updating game."
diff --git a/app/controllers/admin/links_controller.rb b/app/controllers/admin/links_controller.rb index bda0d49..54f245a 100644 --- a/app/controllers/admin/links_controller.rb +++ b/app/controllers/admin/links_controller.rb
@@ -30,7 +30,7 @@ class Admin::LinksController < Admin::AdminController
30 def update 30 def update
31 @link = Link.find(params[:id]) 31 @link = Link.find(params[:id])
32 32
33 if @link.update_attributes(link_params) 33 if @link.update(link_params)
34 flash.notice = "Link updated successfully!" 34 flash.notice = "Link updated successfully!"
35 else 35 else
36 flash.alert = "Error updating link." 36 flash.alert = "Error updating link."
diff --git a/app/controllers/admin/streams_controller.rb b/app/controllers/admin/streams_controller.rb index 252ebfa..91ecc31 100644 --- a/app/controllers/admin/streams_controller.rb +++ b/app/controllers/admin/streams_controller.rb
@@ -30,7 +30,7 @@ class Admin::StreamsController < Admin::AdminController
30 def update 30 def update
31 @stream = Stream.find(params[:id]) 31 @stream = Stream.find(params[:id])
32 32
33 if @stream.update_attributes(stream_params) 33 if @stream.update(stream_params)
34 flash.notice = "Stream updated successfully!" 34 flash.notice = "Stream updated successfully!"
35 else 35 else
36 flash.alert = "Error updating stream." 36 flash.alert = "Error updating stream."
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."