Skip to content

Commit dc7dad6

Browse files
committed
Updated validation documentation to correctly reflect requires method
1 parent e20d7d8 commit dc7dad6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ You can define validations and coercion options for your parameters:
203203

204204
```ruby
205205
params do
206-
required :id, type: Integer
206+
requires :id, type: Integer
207207
optional :name, type: String, regexp: /^[a-z]+$/
208208
end
209209
get ':id' do

0 commit comments

Comments
 (0)