lib/amorail/entity/finders.rb
# We can have response with 200 or 204 here.
# 204 response has no body, so we don't want to parse it.
We can have response with 200 or 204 here.
204 response has no body, so we don't want to parse it.
We can have response with 200 or 204 here . 204 response has no body so we don ' t want to parse it .
def load_many(response)
        return [] if response.status == 204
        response.body['response'].fetch(amo_response_name, [])
                .map { |info| new.reload_model(info) }
      end
def load_many ( response ) return [ ] if response . status == 204 response . body [ 'response' ] . fetch ( amo_response_name , [ ] ) . map { | info | new . reload_model ( info ) } end
We can have response with 200 or 204 here.
We can have response with 200 or 204 here .
response
<not_specific>