Skip to content

Commit

Permalink
Merge pull request #1780 from glaucocustodio/patch-1
Browse files Browse the repository at this point in the history
Fix example
  • Loading branch information
dblock authored Aug 14, 2018
2 parents fd53891 + 798b385 commit 292976d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -935,7 +935,7 @@ parameter, and the return value must match the given `type`.

```ruby
params do
requires :passwd, type: String, coerce_with: Base64.method(:decode)
requires :passwd, type: String, coerce_with: Base64.method(:decode64)
requires :loud_color, type: Color, coerce_with: ->(c) { Color.parse(c.downcase) }

requires :obj, type: Hash, coerce_with: JSON do
Expand Down

0 comments on commit 292976d

Please sign in to comment.