Method: Fake::Request#POST
- Defined in:
- lib/fake/request.rb
#POST ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'lib/fake/request.rb', line 4 def POST params = super if content_type && content_type.downcase == 'application/json' hash = JSON.parse(body_string) params.merge!(hash) end params end |