Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
removed default scope (interferes with recent method)
Browse files Browse the repository at this point in the history
  • Loading branch information
damireh committed Feb 3, 2012
1 parent 3a1537d commit 7901750
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions lib/generators/comment/templates/comment.rb
Original file line number Diff line number Diff line change
@@ -1,15 +1,6 @@
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
belongs_to :user # NOTE: Comments belong to a user
end

0 comments on commit 7901750

Please sign in to comment.