From a5a82d978bd4a46ce73462a0adcb031aa5919ce4 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Fri, 4 Nov 2005 19:39:50 +0000 Subject: Added extension capabilities to has_many and has_and_belongs_to_many proxies [DHH] Added find_or_create_by_X as a second type of dynamic finder that'll create the record if it doesn't already exist [DHH] Added constrain scoping for creates using a hash of attributes bound to the :creation key [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2872 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activerecord/test/fixtures/comment.rb | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'activerecord/test/fixtures/comment.rb') 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 -- cgit v1.2.3