Skip to content

Commit

Permalink
fix syntax in README.md
Browse files Browse the repository at this point in the history
The `requires` statement should be in a `params` block according to ruby-grape#560.
  • Loading branch information
qqshfox committed Jul 4, 2014
1 parent 022bec2 commit 7b30fad
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1360,9 +1360,10 @@ module API
class Statuses < Grape::API
version 'v1'

desc 'Create a status', {
desc 'Create a status'
params do
requires :all, except: [:ip], using: API::Entities::Status.documentation.except(:id)
}
end
post '/status' do
Status.create! params
end
Expand Down

0 comments on commit 7b30fad

Please sign in to comment.