This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Scenario < ActiveRecord::Base | |
has_many :agents, :dependent => :destroy, :inverse_of => :scenario | |
belongs_to :schedule, :inverse_of => :scenarios | |
belongs_to :user | |
attr_accessible :description, :name, :scenario | |
# XML description of scenario - not in DB! | |
attr_accessor :scenario | |
# Create a set of rules from the passed in parameters. | |
# @param current_user the current user |