diff options
author | Nick Kallen <nkallen@nick-kallens-computer-2.local> | 2008-01-12 20:20:24 -0800 |
---|---|---|
committer | Nick Kallen <nkallen@nick-kallens-computer-2.local> | 2008-01-12 20:20:24 -0800 |
commit | 19a63d1acfc9b7668bc19fa2796d4e11a2180cef (patch) | |
tree | 3d08a7240c697128f7ff678daf563b88baf39142 /lib | |
parent | a83efc5d5d94d50589a80bdd27ddf5b83ed39810 (diff) | |
download | rails-19a63d1acfc9b7668bc19fa2796d4e11a2180cef.tar.gz rails-19a63d1acfc9b7668bc19fa2796d4e11a2180cef.tar.bz2 rails-19a63d1acfc9b7668bc19fa2796d4e11a2180cef.zip |
comment
Diffstat (limited to 'lib')
-rw-r--r-- | lib/active_relation/extensions/base.rb | 2 |
1 files changed, 2 insertions, 0 deletions
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) |