Class: Spree::Api::V2::Operator::DashboardCrewEventsController
- Inherits:
-
ResourceController
- Object
- ResourceController
- Spree::Api::V2::Operator::DashboardCrewEventsController
- Defined in:
- app/controllers/spree/api/v2/operator/dashboard_crew_events_controller.rb
Instance Method Summary collapse
Instance Method Details
#collection ⇒ Object
8 9 10 11 12 13 |
# File 'app/controllers/spree/api/v2/operator/dashboard_crew_events_controller.rb', line 8 def collection SpreeCmCommissioner::DashboardCrewEventQuery.new( user_id: spree_current_user.id, section: params[:section] || 'incoming' ).events end |
#collection_serializer ⇒ Object
15 16 17 |
# File 'app/controllers/spree/api/v2/operator/dashboard_crew_events_controller.rb', line 15 def collection_serializer SpreeCmCommissioner::V2::Operator::DashboardCrewEventSerializer end |