Sha256: bb36f931f2f7146887f9ec6298fe88fa11fa761418f329a580143d280272833a

Contents?: true

Size: 350 Bytes

Versions: 160

Compression:

Stored size: 350 Bytes

Contents

module Comee
  module Core
    class UnitsController < ApplicationController
      include Common

      def filter
        units = Unit.ransack(params[:q]).result
        render_content(units)
      end

      private

      def model_params
        params.require(:payload).permit(:code, :name, :unit_type, aliases: [])
      end
    end
  end
end

Version data entries

160 entries across 160 versions & 1 rubygems

Version Path
comee_core-0.3.62 app/controllers/comee/core/units_controller.rb
comee_core-0.3.61 app/controllers/comee/core/units_controller.rb
comee_core-0.3.60 app/controllers/comee/core/units_controller.rb
comee_core-0.3.59 app/controllers/comee/core/units_controller.rb
comee_core-0.3.58 app/controllers/comee/core/units_controller.rb
comee_core-0.3.57 app/controllers/comee/core/units_controller.rb
comee_core-0.3.56 app/controllers/comee/core/units_controller.rb
comee_core-0.3.55 app/controllers/comee/core/units_controller.rb
comee_core-0.3.54 app/controllers/comee/core/units_controller.rb
comee_core-0.3.53 app/controllers/comee/core/units_controller.rb
comee_core-0.3.51 app/controllers/comee/core/units_controller.rb
comee_core-0.3.50 app/controllers/comee/core/units_controller.rb
comee_core-0.3.49 app/controllers/comee/core/units_controller.rb
comee_core-0.3.48 app/controllers/comee/core/units_controller.rb
comee_core-0.3.47 app/controllers/comee/core/units_controller.rb
comee_core-0.3.46 app/controllers/comee/core/units_controller.rb
comee_core-0.3.45 app/controllers/comee/core/units_controller.rb
comee_core-0.3.44 app/controllers/comee/core/units_controller.rb
comee_core-0.3.43 app/controllers/comee/core/units_controller.rb
comee_core-0.3.42 app/controllers/comee/core/units_controller.rb