app/models/pbw/area.rb in pbw-0.0.9 vs app/models/pbw/area.rb in pbw-0.0.10
- old
+ new
@@ -4,14 +4,14 @@
include ::Mongoid::Timestamps
field :name, type: String
validates_presence_of :name
validates_uniqueness_of :name
- has_many :tokens
- has_many :item_containers
- has_many :attached_processes
- has_and_belongs_to_many :constraints
- has_and_belongs_to_many :triggers
+ has_many :tokens, :class_name => 'Pbw::Token'
+ has_many :item_containers, :class_name => 'Pbw::ItemContainer'
+ has_many :attached_processes, :class_name => 'Pbw::AttachedProcess'
+ has_and_belongs_to_many :constraints, :class_name => 'Pbw::Constraint'
+ has_and_belongs_to_many :triggers, :class_name => 'Pbw::Trigger'
attr_accessible :name
def self.viewable_by?(user, subject)
true