aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/inboxes/active_record_extension.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/inboxes/active_record_extension.rb b/lib/inboxes/active_record_extension.rb
index 2a5bac8..d6e7e36 100644
--- a/lib/inboxes/active_record_extension.rb
+++ b/lib/inboxes/active_record_extension.rb
@@ -7,5 +7,9 @@ module Inboxes
has_many :speakers, :dependent => :destroy
has_many :discussions, :through => :speakers
end
+
+ def acts_as_discussable
+ has_many :discussions, :as => :discussable
+ end
end
-end \ No newline at end of file
+end