Skip to content

Commit 798b385

Browse files
Fix example
The class method `decode` does not exist for `Base64`.
1 parent fd53891 commit 798b385

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -935,7 +935,7 @@ parameter, and the return value must match the given `type`.
935935

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

941941
requires :obj, type: Hash, coerce_with: JSON do

0 commit comments

Comments
 (0)