Sha256: 2d9cdb517c80edef5c58b439c2c31ad3452570c93091f9d5aa99506b0ddc7133
Contents?: true
Size: 204 Bytes
Versions: 1
Compression:
Stored size: 204 Bytes
Contents
module Commentable module ClassMethods def commentable(options = {}) self.commentable_options = options has_many :comments, :as => :commentable, :dependent => :destroy end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
commentable-0.1.0 | lib/commentable/class_methods.rb |