Sha256: 85a901b55c2466c6e69eea4965a782ff0cde027142d58e7f010e833fc494070a

Contents?: true

Size: 201 Bytes

Versions: 38

Compression:

Stored size: 201 Bytes

Contents

module ActiveModel
  module Type
    class UnsignedInteger < Integer # :nodoc:
      private

      def max_value
        super * 2
      end

      def min_value
        0
      end
    end
  end
end

Version data entries

38 entries across 37 versions & 5 rubygems

Version Path
activemodel-5.0.7.2 lib/active_model/type/unsigned_integer.rb
activemodel-5.0.7.1 lib/active_model/type/unsigned_integer.rb
activemodel-5.0.7 lib/active_model/type/unsigned_integer.rb
activemodel-5.0.6 lib/active_model/type/unsigned_integer.rb
activemodel-5.0.6.rc1 lib/active_model/type/unsigned_integer.rb
activemodel-5.0.5 lib/active_model/type/unsigned_integer.rb
activemodel-5.0.5.rc2 lib/active_model/type/unsigned_integer.rb
activemodel-5.0.5.rc1 lib/active_model/type/unsigned_integer.rb
tdiary-5.0.5 vendor/bundle/gems/activemodel-5.0.2/lib/active_model/type/unsigned_integer.rb
tdiary-5.0.5 vendor/bundle/gems/tdiary-5.0.4/vendor/bundle/gems/activemodel-5.0.2/lib/active_model/type/unsigned_integer.rb
activemodel-5.0.4 lib/active_model/type/unsigned_integer.rb
activemodel-5.0.4.rc1 lib/active_model/type/unsigned_integer.rb
activemodel-5.0.3 lib/active_model/type/unsigned_integer.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/activemodel-5.0.2/lib/active_model/type/unsigned_integer.rb
tdiary-5.0.4 vendor/bundle/gems/activemodel-5.0.2/lib/active_model/type/unsigned_integer.rb
activemodel-5.0.2 lib/active_model/type/unsigned_integer.rb
activemodel-5.0.2.rc1 lib/active_model/type/unsigned_integer.rb
autocompl-0.2.2 test/dummy/vendor/bundle/ruby/2.3.0/gems/activemodel-5.0.1/lib/active_model/type/unsigned_integer.rb
autocompl-0.2.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/activemodel-5.0.1/lib/active_model/type/unsigned_integer.rb
autocompl-0.2.0 test/dummy/vendor/bundle/ruby/2.3.0/gems/activemodel-5.0.1/lib/active_model/type/unsigned_integer.rb