Class: ActiveRecord::Embedded::Field::NotDefinedError

Inherits:
Error
  • Object
show all
Defined in:
lib/active_record/embedded/field/not_defined_error.rb

Overview

Thrown when an attempt is made to set an attribute on a model that was not configured as a field.

Instance Method Summary collapse

Constructor Details

#initialize(attribute) ⇒ NotDefinedError

Returns a new instance of NotDefinedError


9
10
11
# File 'lib/active_record/embedded/field/not_defined_error.rb', line 9

def initialize(attribute)
  super "Field :#{attribute} is not defined."
end