Skip to content

Commit 2615974

Browse files
parndtawagener
andcommitted
While reading through this guide we noticed that the params assignment
is never used so we removed it from the example. Co-authored-by: Amanda Wagener <[email protected]>
1 parent 8f4740d commit 2615974

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

content/v2.0/actions/control-flow.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ module Bookshelf
3737
private
3838

3939
def validate_params(request, response)
40-
params = request.params
4140
halt 422, request.params.errors.to_h unless request.params.valid?
4241
end
4342
end

0 commit comments

Comments
 (0)