class Pragma::Decorator::Association::UnexpandedAssociationParent
This is raised when the user expanded a nested association without expanding its parent.
Attributes
child[R]
@!attribute [r] child
@return [String|Symbol] the name of the child association
@!attribute [r] parent
@return [String|Symbol] the name of the parent association
parent[R]
@!attribute [r] child
@return [String|Symbol] the name of the child association
@!attribute [r] parent
@return [String|Symbol] the name of the parent association
Public Class Methods
new(child, parent)
click to toggle source
Initializes the error.
@param child [String|Symbol] the name of the child association @param parent [String|Symbol] the name of the parent association
Calls superclass method
# File lib/pragma/decorator/association/errors.rb, line 38 def initialize(child, parent) @child = child @parent = parent super "The '#{child}' association is expanded, but its parent '#{parent}' is not." end