diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2023-11-18 09:40:05 -0500 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2023-11-18 09:40:05 -0500 |
commit | 8cd389750c4cffd6a2552f6ab28a274410f69c34 (patch) | |
tree | 2549174d1728cf05965f2c15df76f2821bcf2c6f /app/controllers | |
parent | fa123398b263283d3f770c81b3324e1b8602b490 (diff) | |
download | wittle-8cd389750c4cffd6a2552f6ab28a274410f69c34.tar.gz wittle-8cd389750c4cffd6a2552f6ab28a274410f69c34.tar.bz2 wittle-8cd389750c4cffd6a2552f6ab28a274410f69c34.zip |
uniqueness on names per puzzle
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/wittle/puzzles_controller.rb | 2 |
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 |