Sha256: 50dbe64a71664469d13289148041d79055647997e7f6c0945b26e1d22a39c8df
Contents?: true
Size: 270 Bytes
Versions: 15
Compression:
Stored size: 270 Bytes
Contents
class Content < ContentBase #ActiveRecord::Base def self.per_page; 10; end has_many :comments # returns the number of comments attached to this content. # the value returned by this method will be indexed, too. def comment_count comments.size end end
Version data entries
15 entries across 15 versions & 4 rubygems