Sha256: 143e67b5e25f79d96ed01f0d8b04222029775bb70bb4a14be3d3632e47645fa4

Contents?: true

Size: 349 Bytes

Versions: 3

Compression:

Stored size: 349 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

3 entries across 3 versions & 1 rubygems

Version Path
acts_as_commentable-3.0.1 lib/generators/comment/templates/comment.rb
acts_as_commentable-2.0.1 lib/generators/comment/templates/comment.rb
acts_as_commentable-3.0.0 lib/generators/comment/templates/comment.rb