1
0

control_link.rb 370 B

1234567
  1. # A ControlLink connects Agents in a control flow from the `controller` to the `control_target`.
  2. class ControlLink < ActiveRecord::Base
  3. attr_accessible :controller_id, :target_id
  4. belongs_to :controller, class_name: 'Agent', inverse_of: :control_links_as_controller
  5. belongs_to :control_target, class_name: 'Agent', inverse_of: :control_links_as_control_target
  6. end