Class: Interaktor::Error::DisallowedAttributeAssignmentError

Inherits:
AttributeError
  • Object
show all
Defined in:
lib/interaktor/error/disallowed_attribute_assignment_error.rb

Instance Method Summary collapse

Instance Method Details

#messageObject



2
3
4
5
6
7
8
# File 'lib/interaktor/error/disallowed_attribute_assignment_error.rb', line 2

def message
  <<~MESSAGE.strip.tr("\n", "")
    Attempted a disallowed assignment to the '#{attributes.first}'
    attribute which was not included when the #{interaktor} interaktor was
    originally called.
  MESSAGE
end