Skip to content

Commit

Permalink
Fix example code in typecast_params plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyevans committed Jul 31, 2024
1 parent 9891bdf commit ee3d514
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/roda/plugins/typecast_params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -735,7 +735,7 @@ def convert_each!(opts=OPTS, &block)
# You can use +dig+ to get access to nested arrays by using <tt>:array</tt> or <tt>:array!</tt> as
# the first argument and providing the type in the second argument:
#
# tp.dig(:array, :pos_int, 'foo', 'bar', 'baz') # tp['foo']['bar'].array(:int, 'baz')
# tp.dig(:array, :pos_int, 'foo', 'bar', 'baz') # tp['foo']['bar'].array(:pos_int, 'baz')
def dig(type, *nest, key)
_dig(false, type, nest, key)
end
Expand Down

0 comments on commit ee3d514

Please sign in to comment.