Sha256: e575dfc3d1935adc1b172dcbb137ba53404f3e86703c40bd6ccee4001825a697
Contents?: true
Size: 353 Bytes
Versions: 18
Compression:
Stored size: 353 Bytes
Contents
class Comment < ActiveRecord::Base include ActsAsCommentable::Comment belongs_to :commentable, :polymorphic => true default_scope -> { order('created_at ASC') } # NOTE: install the acts_as_votable plugin if you # want user to vote on the quality of comments. #acts_as_voteable # NOTE: Comments belong to a user belongs_to :user end
Version data entries
18 entries across 18 versions & 2 rubygems