| Class | Comment |
| In: |
app/models/comment.rb
|
| Parent: | ActiveRecord::Base |
# File app/models/comment.rb, line 38
38: def self.recent(limit = nil)
39: self.find(:all, :order => 'created_at desc, id desc', :limit => limit)
40: end
# File app/models/comment.rb, line 22
22: def author_name
23: if author
24: author.name
25: else
26: name
27: end
28: end