Skip to content

Commit fa6886b

Browse files
authored
Merge pull request rails#54248 from koic/fix_an_incorrect_example_in_strong_parameter
Fix an incorrect example in the doc of the Strong Parameters [ci skip]
2 parents 9c1572c + 6f63abd commit fa6886b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

actionpack/lib/action_controller/metal/strong_parameters.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -765,7 +765,7 @@ def permit(*filters)
765765
#
766766
# params = ActionController::Parameters.new(tags: ["rails", "parameters"])
767767
# permitted = params.expect(tags: [])
768-
# permitted.permitted? # => true
768+
# permitted # => ["rails", "parameters"]
769769
# permitted.is_a?(Array) # => true
770770
# permitted.size # => 2
771771
#

0 commit comments

Comments
 (0)