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

Version Path
jstorimer-deep-test-2.0.0 sample_rails_project/vendor/rails/activerecord/test/fixtures/comment.rb
jstorimer-deep-test-1.4.0 sample_rails_project/vendor/rails/activerecord/test/fixtures/comment.rb
jstorimer-deep-test-1.3.0 sample_rails_project/vendor/rails/activerecord/test/fixtures/comment.rb
jstorimer-deep-test-1.2.0 sample_rails_project/vendor/rails/activerecord/test/fixtures/comment.rb
jstorimer-deep-test-1.1.0 sample_rails_project/vendor/rails/activerecord/test/fixtures/comment.rb
jstorimer-deep-test-1.0.0 sample_rails_project/vendor/rails/activerecord/test/fixtures/comment.rb
jstorimer-deep-test-0.2.0 sample_rails_project/vendor/rails/activerecord/test/fixtures/comment.rb
jstorimer-deep-test-0.1.0 sample_rails_project/vendor/rails/activerecord/test/fixtures/comment.rb