-
Notifications
You must be signed in to change notification settings - Fork 96
Open
Description
The example on here
# app/actions/users/create.rb
module Bookshelf
module Actions
module Users
class Create < Bookshelf::Action
accept :json
def handle(request, response)
request.params.to_h # => {}
end
end
end
end
endwill produce a NoMethodError:
NoMethodError at /users
======================
undefined method 'accept' for class Bookshelf::Actions::Users::CreateI'd offer a PR but I'm unsure what the correct method is. I think deleting the line accept :json should be sufficient as the follow up code says to enable the body parser. If so I'm happy to offer a PR doing so
Metadata
Metadata
Assignees
Labels
No labels