module Mks module Rate class ServiceRatesController < ApplicationController def index render json: Mks::Common::MethodResponse.success_response(ServiceRate.all) end def working_rates rates = ServiceRate.all render json: rates, each_serializer: WorkingRateSerializer end end end end