Class: ActiveModel::Attribute::UninitializedValue

Inherits:
Uninitialized
  • Object
show all
Defined in:
lib/active_model/attribute/uninitialized_value.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#valueObject

Raises:

  • (ActiveModel::MissingAttributeError)


7
8
9
# File 'lib/active_model/attribute/uninitialized_value.rb', line 7

def value
  raise ActiveModel::MissingAttributeError, "missing attribute: #{name}"
end