Skip to content

Commit 545ee31

Browse files
committed
Fix incorrect return value in create_and_respond proc
1 parent c27d707 commit 545ee31

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/controllers/exercises_controller.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -421,6 +421,8 @@ def create
421421
create_and_respond(object: @exercise, params: exercise_params_with_tags) do
422422
# We first need to create the exercise before handling tips
423423
handle_exercise_tips tips_params
424+
# Don't return a specific value from this block, so that the default is used.
425+
nil
424426
end
425427
end
426428

0 commit comments

Comments
 (0)