diff options
author | Josh Kalderimis <josh.kalderimis@gmail.com> | 2011-05-25 02:28:41 +0200 |
---|---|---|
committer | Josh Kalderimis <josh.kalderimis@gmail.com> | 2011-05-25 02:29:32 +0200 |
commit | 542114e1d82fffa1062ef0eaa1053959ab9d14ec (patch) | |
tree | bbeecf790f95cef0f33c7dd4fd029aef3cc1eb90 /activerecord/lib/active_record/associations/collection_proxy.rb | |
parent | 52e01fc59dfcadaa0fd7773fb4d9a04dff297ce8 (diff) | |
download | rails-542114e1d82fffa1062ef0eaa1053959ab9d14ec.tar.gz rails-542114e1d82fffa1062ef0eaa1053959ab9d14ec.tar.bz2 rails-542114e1d82fffa1062ef0eaa1053959ab9d14ec.zip |
removed deprecated methods, and related tests, from ActiveRecord
Diffstat (limited to 'activerecord/lib/active_record/associations/collection_proxy.rb')
-rw-r--r-- | activerecord/lib/active_record/associations/collection_proxy.rb | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/activerecord/lib/active_record/associations/collection_proxy.rb b/activerecord/lib/active_record/associations/collection_proxy.rb index 8415942a1a..adfc71d435 100644 --- a/activerecord/lib/active_record/associations/collection_proxy.rb +++ b/activerecord/lib/active_record/associations/collection_proxy.rb @@ -123,30 +123,6 @@ module ActiveRecord method_missing(:new, *args, &block) end end - - def proxy_owner - ActiveSupport::Deprecation.warn( - "Calling record.#{@association.reflection.name}.proxy_owner is deprecated. Please use " \ - "record.association(:#{@association.reflection.name}).owner instead." - ) - @association.owner - end - - def proxy_target - ActiveSupport::Deprecation.warn( - "Calling record.#{@association.reflection.name}.proxy_target is deprecated. Please use " \ - "record.association(:#{@association.reflection.name}).target instead." - ) - @association.target - end - - def proxy_reflection - ActiveSupport::Deprecation.warn( - "Calling record.#{@association.reflection.name}.proxy_reflection is deprecated. Please use " \ - "record.association(:#{@association.reflection.name}).reflection instead." - ) - @association.reflection - end end end end |