Class: Comee::Core::AdditionalServicesController
- Inherits:
-
ApplicationController
- Object
- ActionController::API
- ApplicationController
- Comee::Core::AdditionalServicesController
- Includes:
- Common
- Defined in:
- app/controllers/comee/core/additional_services_controller.rb
Instance Method Summary collapse
Methods included from Common
Methods included from Pagination
#default_per_page, #order_by, #order_direction, #page_no, #paginate, #paginate_offset, #per_page
Methods inherited from ApplicationController
#application_code, #authenticate, #current_application, #current_user, #render_content, #render_error, #skip_bullet
Instance Method Details
#filter ⇒ Object
12 13 14 15 |
# File 'app/controllers/comee/core/additional_services_controller.rb', line 12 def filter services = AdditionalService.includes(:sales_order).ransack(params[:q]).result render_content(services) end |
#index ⇒ Object
6 7 8 9 10 |
# File 'app/controllers/comee/core/additional_services_controller.rb', line 6 def index super do AdditionalService.where(sales_order_id: params[:id]) end end |