diff options
author | sblackstone <sblackstone@coffee.(none)> | 2010-11-03 14:12:28 -0400 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-11-04 15:02:27 -0700 |
commit | 710dcf826a073720b817389fe1b7013fb87be659 (patch) | |
tree | fd168b74c60193362a26858fe63924e4c9fdb48e /activerecord/lib/active_record | |
parent | 3bb1ad32bf5a24524870345b099e8361ce62e9fb (diff) | |
download | rails-710dcf826a073720b817389fe1b7013fb87be659.tar.gz rails-710dcf826a073720b817389fe1b7013fb87be659.tar.bz2 rails-710dcf826a073720b817389fe1b7013fb87be659.zip |
Association Proxy should not undefine the default respond_to_missing
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r-- | activerecord/lib/active_record/associations/association_proxy.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/associations/association_proxy.rb b/activerecord/lib/active_record/associations/association_proxy.rb index 0c12c3737d..ac2aa46edf 100644 --- a/activerecord/lib/active_record/associations/association_proxy.rb +++ b/activerecord/lib/active_record/associations/association_proxy.rb @@ -53,7 +53,7 @@ module ActiveRecord alias_method :proxy_respond_to?, :respond_to? alias_method :proxy_extend, :extend delegate :to_param, :to => :proxy_target - instance_methods.each { |m| undef_method m unless m.to_s =~ /^(?:nil\?|send|object_id|to_a)$|^__|proxy_/ } + instance_methods.each { |m| undef_method m unless m.to_s =~ /^(?:nil\?|send|object_id|to_a)$|^__|^respond_to_missing|proxy_/ } def initialize(owner, reflection) @owner, @reflection = owner, reflection |