Class: Caprese::Controller

Inherits:
ActionController::Base
  • Object
show all
Extended by:
Versioning
Includes:
ActiveSupport::Configurable, Aliasing, Callbacks, Errors, Persistence, Query, Relationships, Rendering, Typing, Versioning
Defined in:
lib/caprese/controller.rb

Overview

TODO: Convert to ActionController::API with Rails 5

Constant Summary

Constants included from Callbacks

Caprese::Callbacks::CALLBACKS

Method Summary

Methods included from Versioning

unversion, version_dot_path, version_module, version_name, version_path

Methods included from Typing

#controller_record_class, #fail_on_type_mismatch, #record_class

Methods included from Rendering

#meta, #render

Methods included from Relationships

#get_relationship_data, #get_relationship_definition, #relationship_scope, #update_relationship_definition

Methods included from Query

#apply_sorting_pagination_to_scope, #get_record, #get_record!, #index, #queried_collection, #queried_record, #queried_record_scope, #query_params, #record_scope, #show

Methods included from Persistence

#create, #destroy, #update

Methods included from Errors

#error

Methods included from Aliasing

#actual_field, #actual_fields, #actual_includes, #actual_type, #resource_type_aliases