Class: Spree::Api::V2::Tenant::TicketsController
- Inherits:
-
BaseController
- Object
- ResourceController
- BaseController
- Spree::Api::V2::Tenant::TicketsController
show all
- Defined in:
- app/controllers/spree/api/v2/tenant/tickets_controller.rb
Instance Method Summary
collapse
#render_serialized_payload, #require_tenant, #scope
Instance Method Details
#collection ⇒ Object
12
13
14
|
# File 'app/controllers/spree/api/v2/tenant/tickets_controller.rb', line 12
def collection
SpreeCmCommissioner::TicketsSearcherQuery.new(params, MultiTenant.current_tenant_id).call
end
|
#index ⇒ Object
6
7
8
9
10
|
# File 'app/controllers/spree/api/v2/tenant/tickets_controller.rb', line 6
def index
render_serialized_payload do
serialize_collection(paginated_collection)
end
end
|