Sha256: 7edb318a660f18ecf31a86b2c3e307df0f0900d8288cfdc63eb657c844c26e23

Contents?: true

Size: 348 Bytes

Versions: 160

Compression:

Stored size: 348 Bytes

Contents

module Comee
  module Core
    class UnitConversionsController < ApplicationController
      include Common

      def index
        super do
          UnitConversion.includes(:from, :to).all
        end
      end

      private

      def model_params
        params.require(:payload).permit(:from_id, :to_id, :factor)
      end
    end
  end
end

Version data entries

160 entries across 160 versions & 1 rubygems

Version Path
comee_core-0.2.36 app/controllers/comee/core/unit_conversions_controller.rb
comee_core-0.2.35 app/controllers/comee/core/unit_conversions_controller.rb
comee_core-0.2.34 app/controllers/comee/core/unit_conversions_controller.rb
comee_core-0.2.33 app/controllers/comee/core/unit_conversions_controller.rb
comee_core-0.2.32 app/controllers/comee/core/unit_conversions_controller.rb
comee_core-0.2.31 app/controllers/comee/core/unit_conversions_controller.rb
comee_core-0.2.30 app/controllers/comee/core/unit_conversions_controller.rb
comee_core-0.2.29 app/controllers/comee/core/unit_conversions_controller.rb
comee_core-0.2.28 app/controllers/comee/core/unit_conversions_controller.rb
comee_core-0.2.27 app/controllers/comee/core/unit_conversions_controller.rb
comee_core-0.2.26 app/controllers/comee/core/unit_conversions_controller.rb
comee_core-0.2.25 app/controllers/comee/core/unit_conversions_controller.rb
comee_core-0.2.24 app/controllers/comee/core/unit_conversions_controller.rb
comee_core-0.2.23 app/controllers/comee/core/unit_conversions_controller.rb
comee_core-0.2.22 app/controllers/comee/core/unit_conversions_controller.rb
comee_core-0.2.21 app/controllers/comee/core/unit_conversions_controller.rb
comee_core-0.2.20 app/controllers/comee/core/unit_conversions_controller.rb
comee_core-0.2.19 app/controllers/comee/core/unit_conversions_controller.rb
comee_core-0.2.18 app/controllers/comee/core/unit_conversions_controller.rb
comee_core-0.2.17 app/controllers/comee/core/unit_conversions_controller.rb