Sha256: cadb00f00a44bd19ef1d4243e11ed3569671bf827d08339501cdb29715b4b806
Contents?: true
Size: 402 Bytes
Versions: 31
Compression:
Stored size: 402 Bytes
Contents
module Blogit module Blogs def self.included(base) base.extend ClassMethods end module ClassMethods # When called within a model (usually User) this creates # a has-many assosciation between the model and Blogit::Post def blogs has_many :blog_posts, :as => "blogger", :class_name => "Blogit::Post" end end end end
Version data entries
31 entries across 31 versions & 1 rubygems