Sha256: 593194f6ebcdb2f7165a5153f789a842f5f668fc4a32e58244583a074de02d85
Contents?: true
Size: 405 Bytes
Versions: 8
Compression:
Stored size: 405 Bytes
Contents
class Comment < ActiveRecord::Base belongs_to :post def self.what_are_you 'a comment...' end def self.search_by_type(q) self.find(:all, :conditions => ["#{QUOTED_TYPE} = ?", q]) end end class SpecialComment < Comment def self.what_are_you 'a special comment...' end end class VerySpecialComment < Comment def self.what_are_you 'a very special comment...' end end
Version data entries
8 entries across 8 versions & 1 rubygems