Sha256: cb83b8cdd2ffac2b0cfa1d1d7f8f5cb9e44d56e22c48d7685412ec7bae4dd34c
Contents?: true
Size: 634 Bytes
Versions: 2
Compression:
Stored size: 634 Bytes
Contents
class Comment < ActiveRecord::Base ################################################################### ### To implement commentable add the following line to your model ### acts_as_commentable types: [:hide, :show], options: { class_name: 'Comment', as: :commentable } ### types is an array of possible comment type ### for example if you have public and private comment ### your types would be [:public, :private] include ActsAsCommentableMore::Finders belongs_to :commentable, :polymorphic => true belongs_to :user, polymorphic: true ################################################################### end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
acts_as_commentable_more-1.1.0 | test/dummy/app/models/comment.rb |
acts_as_commentable_more-1.0.0 | test/dummy/app/models/comment.rb |