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.16 app/controllers/comee/core/unit_conversions_controller.rb
comee_core-0.2.15 app/controllers/comee/core/unit_conversions_controller.rb
comee_core-0.2.14 app/controllers/comee/core/unit_conversions_controller.rb
comee_core-0.2.13 app/controllers/comee/core/unit_conversions_controller.rb
comee_core-0.2.12 app/controllers/comee/core/unit_conversions_controller.rb
comee_core-0.2.11 app/controllers/comee/core/unit_conversions_controller.rb
comee_core-0.2.10 app/controllers/comee/core/unit_conversions_controller.rb
comee_core-0.2.9 app/controllers/comee/core/unit_conversions_controller.rb
comee_core-0.2.8 app/controllers/comee/core/unit_conversions_controller.rb
comee_core-0.2.7 app/controllers/comee/core/unit_conversions_controller.rb
comee_core-0.2.6 app/controllers/comee/core/unit_conversions_controller.rb
comee_core-0.2.5 app/controllers/comee/core/unit_conversions_controller.rb
comee_core-0.2.4 app/controllers/comee/core/unit_conversions_controller.rb
comee_core-0.2.3 app/controllers/comee/core/unit_conversions_controller.rb
comee_core-0.2.2 app/controllers/comee/core/unit_conversions_controller.rb
comee_core-0.2.1 app/controllers/comee/core/unit_conversions_controller.rb
comee_core-0.2.0 app/controllers/comee/core/unit_conversions_controller.rb
comee_core-0.1.99 app/controllers/comee/core/unit_conversions_controller.rb
comee_core-0.1.98 app/controllers/comee/core/unit_conversions_controller.rb
comee_core-0.1.97 app/controllers/comee/core/unit_conversions_controller.rb