Module: RequestType

Extended by:
ActiveSupport::Concern
Included in:
ApiController, ApplicationController, PaginationHeaders
Defined in:
app/controllers/concerns/RequestType.rb,
app/controllers/concerns/request_type.rb

Instance Method Summary collapse

Instance Method Details

#json_request?Boolean

Returns:

  • (Boolean)


4
5
6
# File 'app/controllers/concerns/RequestType.rb', line 4

def json_request?
  request.format.json?
end