diff options
Diffstat (limited to 'activerecord/test/fixtures')
-rw-r--r-- | activerecord/test/fixtures/comment.rb | 12 | ||||
-rw-r--r-- | activerecord/test/fixtures/post.rb | 3 |
2 files changed, 6 insertions, 9 deletions
diff --git a/activerecord/test/fixtures/comment.rb b/activerecord/test/fixtures/comment.rb index 0605fd7046..fd3a43ff5a 100644 --- a/activerecord/test/fixtures/comment.rb +++ b/activerecord/test/fixtures/comment.rb @@ -10,18 +10,14 @@ class Comment < ActiveRecord::Base end end -class SpecialComment < Comment; - +class SpecialComment < Comment def self.what_are_you 'a special comment...' end - -end; +end -class VerySpecialComment < Comment; - +class VerySpecialComment < Comment def self.what_are_you 'a very special comment...' end - -end; +end
\ No newline at end of file diff --git a/activerecord/test/fixtures/post.rb b/activerecord/test/fixtures/post.rb index 6163ec90f8..1a34823ca0 100644 --- a/activerecord/test/fixtures/post.rb +++ b/activerecord/test/fixtures/post.rb @@ -11,8 +11,9 @@ class Post < ActiveRecord::Base end } + has_one :very_special_comment + has_many :special_comments - has_many :special_comments, :class_name => "SpecialComment" has_and_belongs_to_many :categories has_and_belongs_to_many :special_categories, :join_table => "categories_posts" |