blob: 880eb1573d8e40be8ecdb2939b16357648296c90 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
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
|