Module: JSONAPI::Utils
- Defined in:
- lib/jsonapi/utils/request.rb,
lib/jsonapi/utils/version.rb,
lib/jsonapi/utils/response.rb,
lib/jsonapi/utils/exceptions.rb,
lib/jsonapi/utils/support/error.rb,
lib/jsonapi/utils/support/filter.rb,
lib/jsonapi/utils/response/renders.rb,
lib/jsonapi/utils/response/support.rb,
lib/jsonapi/utils/support/pagination.rb,
lib/jsonapi/utils/response/formatters.rb,
lib/jsonapi/utils.rb
Defined Under Namespace
Modules: Exceptions, Request, Response, Support
Constant Summary collapse
- VERSION =
'0.4.8'
Constants included from Support::Error
Class Method Summary collapse
Methods included from Support::Sort
#apply_sort, #sort_criteria, #sort_params
Methods included from Support::Pagination
#apply_pagination, #pagination_params
Methods included from Support::Filter::Default
#apply_filter, #apply_filter?, #filter_params
Methods included from Support::Error
Methods included from Response::Formatters
#jsonapi_format, #jsonapi_format_errors
Methods included from Response::Renders
#jsonapi_render, #jsonapi_render_bad_request, #jsonapi_render_errors, #jsonapi_render_internal_server_error, #jsonapi_render_not_found, #jsonapi_render_not_found_with_null
Methods included from Request
#check_request, #jsonapi_request_handling, #relationship_params, #resource_params, #setup_request
Class Method Details
.included(base) ⇒ Object
16 17 18 19 20 21 22 |
# File 'lib/jsonapi/utils.rb', line 16 def self.included(base) base.include ActsAsResourceController if base.respond_to?(:before_action) base.before_action :jsonapi_request_handling end end |