Module: Blogit::Blogs::ClassMethods
- Defined in:
- lib/blogit/blogs.rb
Instance Method Summary (collapse)
-
- (Object) blogs
When called within a model (usually User) this creates a has-many assosciation between the model and Blogit::Post.
Instance Method Details
- (Object) blogs
When called within a model (usually User) this creates a has-many assosciation between the model and Blogit::Post
12 13 14 |
# File 'lib/blogit/blogs.rb', line 12 def blogs has_many :blog_posts, :as => "blogger", :class_name => "Blogit::Post" end |