From 19a63d1acfc9b7668bc19fa2796d4e11a2180cef Mon Sep 17 00:00:00 2001 From: Nick Kallen Date: Sat, 12 Jan 2008 20:20:24 -0800 Subject: comment --- lib/active_relation/extensions/base.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib') diff --git a/lib/active_relation/extensions/base.rb b/lib/active_relation/extensions/base.rb index 53523e9d12..8fe00146d2 100644 --- a/lib/active_relation/extensions/base.rb +++ b/lib/active_relation/extensions/base.rb @@ -20,6 +20,8 @@ class ActiveRecord::Base end end +# all of the below disables normal AR behavior. It's rather destructive and purely for demonstration purposes (see scratch_spec). + class ActiveRecord::Associations::BelongsToAssociation def instantiate(record, joins = []) @target = proxy_reflection.klass.instantiate(record, joins) -- cgit v1.2.3