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

Commit

Permalink
Ruby 1.9 compat
Browse files Browse the repository at this point in the history
\#type got removed, use #class
  • Loading branch information
oleriesenberg authored and jackdempsey committed Aug 3, 2009
1 parent 3664cf4 commit f8dd759
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/commentable_methods.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ module InstanceMethods
# Helper method to sort comments by date
def comments_ordered_by_submitted
Comment.find(:all,
:conditions => ["commentable_id = ? and commentable_type = ?", id, self.type.name],
:conditions => ["commentable_id = ? and commentable_type = ?", id, self.class.name],
:order => "created_at DESC"
)
end
Expand Down

0 comments on commit f8dd759

Please sign in to comment.