Class: Mks::Rate::ServiceRatesController
- Inherits:
-
ApplicationController
- Object
- Auth::ApplicationController
- ApplicationController
- Mks::Rate::ServiceRatesController
- Defined in:
- app/controllers/mks/rate/service_rates_controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
4 5 6 |
# File 'app/controllers/mks/rate/service_rates_controller.rb', line 4 def index render json: Mks::Common::MethodResponse.success_response(ServiceRate.all) end |
#working_rates ⇒ Object
8 9 10 11 |
# File 'app/controllers/mks/rate/service_rates_controller.rb', line 8 def working_rates rates = ServiceRate.all render json: rates, each_serializer: WorkingRateSerializer end |