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/games_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/controllers/admin/games_controller.rb') 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 def update @game = Game.find(params[:id]) - if @game.update_attributes(game_params) + if @game.update(game_params) flash.notice = "Game updated successfully!" else flash.alert = "Error updating game." -- cgit 1.4.1