Class: FlyingSphinx::Response::JSON
- Inherits:
-
Faraday::Middleware
- Object
- Faraday::Middleware
- FlyingSphinx::Response::JSON
- Defined in:
- lib/flying_sphinx/response/json.rb
Instance Method Summary collapse
Instance Method Details
#on_complete(environment) ⇒ Object
2 3 4 5 6 |
# File 'lib/flying_sphinx/response/json.rb', line 2 def on_complete(environment) return if environment[:request_headers]['Authorization'].nil? environment[:body] = MultiJson.load environment[:body] end |