Exception: Pragma::Decorator::Association::AssociationNotFound

Inherits:
ExpansionError
  • Object
show all
Defined in:
lib/pragma/decorator/association/errors.rb

Overview

This is raised when a non-existing association is expanded.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(property) ⇒ AssociationNotFound

Initializes the rror.

Parameters:

  • property (String|Symbol)

    the property the user tried to expand



19
20
21
22
# File 'lib/pragma/decorator/association/errors.rb', line 19

def initialize(property)
  @property = property
  super "The '#{property}' association is not defined."
end

Instance Attribute Details

#propertyObject (readonly)

Returns the value of attribute property.



14
15
16
# File 'lib/pragma/decorator/association/errors.rb', line 14

def property
  @property
end