class
Importance_1
v7.1.3.2 - Show latest stable - 0 notes - Superclass: Integer

Active Model BigInteger Type

Attribute type for integers that can be serialized to an unlimited number of bytes. This type is registered under the :big_integer key.

class Person
  include ActiveModel::Attributes

  attribute :id, :big_integer
end

person = Person.new
person.id = "18_000_000_000"

person.id # => 18000000000

All casting and serialization are performed in the same way as the standard ActiveModel::Type::Integer type.

Show files where this class is defined (1 file)
Register or log in to add new notes.