class ActiveModel::Attribute::Null

:nodoc:

def initialize(name)

:nodoc:
def initialize(name)
  super(name, nil, Type.default_value)
end

def type_cast(*)

def type_cast(*)
  nil
end

def with_type(type)

def with_type(type)
  self.class.with_cast_value(name, nil, type)
end

def with_value_from_database(value)

def with_value_from_database(value)
  raise ActiveModel::MissingAttributeError, "can't write unknown attribute `#{name}`"
end