Sha256: c9668af8e2f4c0c4962efbf189e1e90ce818adc02fea29145053046a5d1cce6b
Contents?: true
Size: 660 Bytes
Versions: 2
Compression:
Stored size: 660 Bytes
Contents
class CustomComment < ActiveRecord::Base ################################################################### ### To implement commentable add the following line to your model ### acts_as_commentable types: [:hide, :show], options: { class_name: 'CustomComment', as: :custom_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 :custom_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/custom_comment.rb |
acts_as_commentable_more-1.0.0 | test/dummy/app/models/custom_comment.rb |