Class: AgentRelationship

Inherits:
ApplicationRecord
  • Object
show all
Defined in:
app/models/agent_relationship.rb,
app/models2/agent_relationship.rb

Instance Method Summary collapse

Instance Method Details

#check_parentObject



9
10
11
# File 'app/models/agent_relationship.rb', line 9

def check_parent
  errors.add(:parent) if parent_id == child_id
end