aboutsummaryrefslogblamecommitdiffstats
path: root/activerecord/test/fixtures/category.rb
blob: 880eb1573d8e40be8ecdb2939b16357648296c90 (plain) (tree)
1
2
3
4
5
6
7
8

                                   



                       
   
 






                                
class Category < ActiveRecord::Base
  has_and_belongs_to_many :posts
  
  def self.what_are_you
    'a category...'
  end
end

class SpecialCategory < Category
  
  def self.what_are_you
    'a special category...'
  end  
  
end