2011-10-13 16:55:03 +01:00
|
|
|
class Relation < ActiveRecord::Base
|
|
|
|
belongs_to :target, :polymorphic => true
|
|
|
|
belongs_to :object, :polymorphic => true
|
2011-10-19 21:19:45 +01:00
|
|
|
has_many :roles, :autosave => true, :through => :role_lines
|
2011-10-13 16:55:03 +01:00
|
|
|
end
|