Class: AgentRelationship
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- AgentRelationship
- Defined in:
- app/models/agent_relationship.rb
Instance Method Summary collapse
Instance Method Details
#check_parent ⇒ Object
9 10 11 |
# File 'app/models/agent_relationship.rb', line 9 def check_parent errors.add(:parent) if parent_id == child_id end |