Sha256: f3a5540b65dcada34a8aeab3a474ad2ba8a82ed986c3f198c52a8dd18c6d3e12

Contents?: true

Size: 242 Bytes

Versions: 19

Compression:

Stored size: 242 Bytes

Contents

module ActiveRecord
  module Type
    class DecimalWithoutScale < ActiveModel::Type::BigInteger # :nodoc:
      def type
        :decimal
      end

      def type_cast_for_schema(value)
        value.to_s.inspect
      end
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
activerecord-5.1.7 lib/active_record/type/decimal_without_scale.rb
activerecord-5.1.7.rc1 lib/active_record/type/decimal_without_scale.rb
activerecord-5.1.6.2 lib/active_record/type/decimal_without_scale.rb
activerecord-5.1.6.1 lib/active_record/type/decimal_without_scale.rb
activerecord-5.1.6 lib/active_record/type/decimal_without_scale.rb
activerecord-5.1.5 lib/active_record/type/decimal_without_scale.rb
activerecord-5.1.5.rc1 lib/active_record/type/decimal_without_scale.rb
activerecord-5.1.4 lib/active_record/type/decimal_without_scale.rb
activerecord-5.1.4.rc1 lib/active_record/type/decimal_without_scale.rb
activerecord-5.1.3 lib/active_record/type/decimal_without_scale.rb
activerecord-5.1.3.rc3 lib/active_record/type/decimal_without_scale.rb
activerecord-5.1.3.rc2 lib/active_record/type/decimal_without_scale.rb
activerecord-5.1.3.rc1 lib/active_record/type/decimal_without_scale.rb
activerecord-5.1.2 lib/active_record/type/decimal_without_scale.rb
activerecord-5.1.2.rc1 lib/active_record/type/decimal_without_scale.rb
activerecord-5.1.1 lib/active_record/type/decimal_without_scale.rb
activerecord-5.1.0 lib/active_record/type/decimal_without_scale.rb
activerecord-5.1.0.rc2 lib/active_record/type/decimal_without_scale.rb
activerecord-5.1.0.rc1 lib/active_record/type/decimal_without_scale.rb