diff options
| author | Kir Shatrov | 2012-01-17 04:06:10 -0800 | 
|---|---|---|
| committer | Kir Shatrov | 2012-01-17 04:06:10 -0800 | 
| commit | a49705dffc625f08577f5ce0acaf6b75ae2abef6 (patch) | |
| tree | 42a2fe5c1068b8ca054664d11523cded1a2c6238 /app/models | |
| parent | bbde9b7d0fc69d738634e47afd5925b1515cf9ee (diff) | |
| parent | 69127502f3a419beecd35dda687f5536524a4d7a (diff) | |
| download | inboxes-a49705dffc625f08577f5ce0acaf6b75ae2abef6.tar.bz2 | |
Merge pull request #9 from alec-c4/master
discussable
Diffstat (limited to 'app/models')
| -rw-r--r-- | app/models/discussion.rb | 2 | 
1 files changed, 2 insertions, 0 deletions
| diff --git a/app/models/discussion.rb b/app/models/discussion.rb index a5b12ca..675547d 100644 --- a/app/models/discussion.rb +++ b/app/models/discussion.rb @@ -7,6 +7,8 @@ class Discussion < ActiveRecord::Base    # creater    has_many :messages, :dependent => :destroy +  belongs_to :discussable, :polymorphic => true +    # participants of discussion (speakers)    has_many :speakers, :dependent => :destroy    has_many :users, :through => :speakers | 
