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

Version Path
commenteux-1.2.0 spec/dummy/app/models/comment.rb
commenteux-1.1.6 spec/dummy/app/models/comment.rb
commenteux-1.1.5 spec/dummy/app/models/comment.rb
commenteux-1.1.4 spec/dummy/app/models/comment.rb
commenteux-1.1.3 spec/dummy/app/models/comment.rb
acts_as_commentable-4.0.2 lib/generators/comment/templates/comment.rb
commenteux-1.1.2 spec/dummy/app/models/comment.rb
commenteux-1.1.1 spec/dummy/app/models/comment.rb
commenteux-1.1.0 spec/dummy/app/models/comment.rb
commenteux-1.0.6 spec/dummy/app/models/comment.rb
commenteux-1.0.5 spec/dummy/app/models/comment.rb
commenteux-1.0.4 spec/dummy/app/models/comment.rb
commenteux-1.0.3 spec/dummy/app/models/comment.rb
commenteux-1.0.2 spec/dummy/app/models/comment.rb
commenteux-1.0.1 spec/dummy/app/models/comment.rb
commenteux-1.0.0 spec/dummy/app/models/comment.rb
acts_as_commentable-4.0.1 lib/generators/comment/templates/comment.rb
acts_as_commentable-4.0.0 lib/generators/comment/templates/comment.rb