about summary refs log tree commit diff stats
path: root/app/controllers
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/wittle/puzzles_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/wittle/puzzles_controller.rb b/app/controllers/wittle/puzzles_controller.rb index 9d846f9..a937aa1 100644 --- a/app/controllers/wittle/puzzles_controller.rb +++ b/app/controllers/wittle/puzzles_controller.rb
@@ -93,7 +93,7 @@ module Wittle
93 93
94 raise ActiveRecord::RecordNotFound unless @puzzle.latest? 94 raise ActiveRecord::RecordNotFound unless @puzzle.latest?
95 95
96 @puzzle.scores.create!(name: params[:name], ip: request.ip, seconds_taken: (params.include? :time) ? params[:time] : nil) 96 @puzzle.scores.create(name: params[:name], ip: request.ip, seconds_taken: (params.include? :time) ? params[:time] : nil)
97 97
98 redirect_to @puzzle 98 redirect_to @puzzle
99 end 99 end