diff options
Diffstat (limited to 'activerecord/test/fixtures/category.rb')
-rw-r--r-- | activerecord/test/fixtures/category.rb | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/activerecord/test/fixtures/category.rb b/activerecord/test/fixtures/category.rb index 822defa03e..880eb1573d 100644 --- a/activerecord/test/fixtures/category.rb +++ b/activerecord/test/fixtures/category.rb @@ -1,5 +1,15 @@ class Category < ActiveRecord::Base has_and_belongs_to_many :posts + + def self.what_are_you + 'a category...' + end end -class SpecialCategory < Category; end; +class SpecialCategory < Category + + def self.what_are_you + 'a special category...' + end + +end |