Module: JSONAPI::ActsAsResourceController
- Extended by:
- ActiveSupport::Concern
- Included in:
- ResourceController
- Defined in:
- lib/jsonapi/acts_as_resource_controller.rb
Instance Method Summary collapse
- #create ⇒ Object
- #create_association ⇒ Object
-
#create_operations_processor ⇒ Object
set the operations processor in the configuration or override this to use another operations processor.
- #destroy ⇒ Object
- #destroy_association ⇒ Object
- #get_related_resource ⇒ Object
- #get_related_resources ⇒ Object
- #index ⇒ Object
- #show ⇒ Object
- #show_association ⇒ Object
- #update ⇒ Object
- #update_association ⇒ Object
Instance Method Details
#create ⇒ Object
25 26 27 |
# File 'lib/jsonapi/acts_as_resource_controller.rb', line 25 def create process_request_operations end |
#create_association ⇒ Object
29 30 31 |
# File 'lib/jsonapi/acts_as_resource_controller.rb', line 29 def create_association process_request_operations end |
#create_operations_processor ⇒ Object
set the operations processor in the configuration or override this to use another operations processor
58 59 60 |
# File 'lib/jsonapi/acts_as_resource_controller.rb', line 58 def create_operations_processor JSONAPI.configuration.operations_processor.new end |
#destroy ⇒ Object
41 42 43 |
# File 'lib/jsonapi/acts_as_resource_controller.rb', line 41 def destroy process_request_operations end |
#destroy_association ⇒ Object
45 46 47 |
# File 'lib/jsonapi/acts_as_resource_controller.rb', line 45 def destroy_association process_request_operations end |
#get_related_resource ⇒ Object
49 50 51 |
# File 'lib/jsonapi/acts_as_resource_controller.rb', line 49 def process_request_operations end |
#get_related_resources ⇒ Object
53 54 55 |
# File 'lib/jsonapi/acts_as_resource_controller.rb', line 53 def process_request_operations end |
#index ⇒ Object
13 14 15 |
# File 'lib/jsonapi/acts_as_resource_controller.rb', line 13 def index process_request_operations end |
#show ⇒ Object
17 18 19 |
# File 'lib/jsonapi/acts_as_resource_controller.rb', line 17 def show process_request_operations end |
#show_association ⇒ Object
21 22 23 |
# File 'lib/jsonapi/acts_as_resource_controller.rb', line 21 def show_association process_request_operations end |
#update ⇒ Object
37 38 39 |
# File 'lib/jsonapi/acts_as_resource_controller.rb', line 37 def update process_request_operations end |
#update_association ⇒ Object
33 34 35 |
# File 'lib/jsonapi/acts_as_resource_controller.rb', line 33 def update_association process_request_operations end |