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
autocompl-0.1.2 test/dummy/vendor/bundle/ruby/2.3.0/gems/activemodel-5.0.1/lib/active_model/type/unsigned_integer.rb
autocompl-0.1.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/activemodel-5.0.1/lib/active_model/type/unsigned_integer.rb
autocompl-0.1.0 test/dummy/vendor/bundle/ruby/2.3.0/gems/activemodel-5.0.1/lib/active_model/type/unsigned_integer.rb
autocompl-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/activemodel-5.0.1/lib/active_model/type/unsigned_integer.rb
abaci-0.3.0 vendor/bundle/gems/activemodel-5.0.0/lib/active_model/type/unsigned_integer.rb
activemodel-5.0.1 lib/active_model/type/unsigned_integer.rb
activemodel-5.0.1.rc2 lib/active_model/type/unsigned_integer.rb
activemodel-5.0.1.rc1 lib/active_model/type/unsigned_integer.rb
activemodel-5.0.0.1 lib/active_model/type/unsigned_integer.rb
activemodel-5.0.0 lib/active_model/type/unsigned_integer.rb
activemodel-5.0.0.rc2 lib/active_model/type/unsigned_integer.rb
activemodel-5.0.0.racecar1 lib/active_model/type/unsigned_integer.rb
activemodel-5.0.0.rc1 lib/active_model/type/unsigned_integer.rb
activemodel-5.0.0.beta4 lib/active_model/type/unsigned_integer.rb
activemodel-5.0.0.beta3 lib/active_model/type/unsigned_integer.rb
activemodel-5.0.0.beta2 lib/active_model/type/unsigned_integer.rb
activemodel-5.0.0.beta1.1 lib/active_model/type/unsigned_integer.rb
activemodel-5.0.0.beta1 lib/active_model/type/unsigned_integer.rb