aboutsummaryrefslogblamecommitdiffstats
path: root/activemodel/lib/active_model/type/unsigned_integer.rb
blob: 288fa23efe911c87fb40885c08e60b838e30be5c (plain) (tree)
1
2
3
4
5
6
7
8
9
                  



                                             


                     
 


                     


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

        def max_value
          super * 2
        end

        def min_value
          0
        end
    end
  end
end