about summary refs log tree commit diff stats
path: root/app/controllers/admin/games_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/admin/games_controller.rb')
-rw-r--r--app/controllers/admin/games_controller.rb2
1 files changed, 1 insertions, 1 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."