app/controllers/okei/api/v1/units_controller.rb in okei-1.0.0 vs app/controllers/okei/api/v1/units_controller.rb in okei-1.0.1

- old
+ new

@@ -7,11 +7,11 @@ # API v.1 controllers. module V1 # Controller for getting units - class UnitsController < Responder + class UnitsController < ResponderController # Returns either all units of measure or units of given measure. def index run_case GetUnits, with: :measure end @@ -30,10 +30,10 @@ # Initializes a corresponding use case (service) with allowed params, # subscribes for its results and then runs a use case. # # After running, the use case will call a method defined in the - # `Responder` parent class. + # `ResponderController` base class. # def run_case(klass, with:) use_case = klass.new params.permit(*with) use_case.subscribe self, prefix: :on use_case.run