Sha256: 8a40db1eacd4f3bad09760b2899f60ca81f0f29c135cec8ce12844267ab0120c
Contents?: true
Size: 261 Bytes
Versions: 10
Compression:
Stored size: 261 Bytes
Contents
class Post < ActiveRecord::Base include TheComments::Commentable belongs_to :user def commentable_title title end def commentable_url ['', self.class.to_s.tableize, id].join('/') end def commentable_state :published.to_s end end
Version data entries
10 entries across 10 versions & 3 rubygems