Module: ForumSite

Defined in:
lib/forum_site.rb

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



3
4
5
6
7
8
9
10
11
# File 'lib/forum_site.rb', line 3

def self.included(base)
  base.class_eval %{
    has_many :forums
    has_many :topics
    has_many :posts
    belongs_to :forum_layout, :class_name => 'Layout'
  } 
  super
end