aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/associations/builder
diff options
context:
space:
mode:
authorJosh Kalderimis <josh.kalderimis@gmail.com>2011-05-25 02:28:41 +0200
committerJosh Kalderimis <josh.kalderimis@gmail.com>2011-05-25 02:29:32 +0200
commit542114e1d82fffa1062ef0eaa1053959ab9d14ec (patch)
treebbeecf790f95cef0f33c7dd4fd029aef3cc1eb90 /activerecord/lib/active_record/associations/builder
parent52e01fc59dfcadaa0fd7773fb4d9a04dff297ce8 (diff)
downloadrails-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/builder')
-rw-r--r--activerecord/lib/active_record/associations/builder/singular_association.rb13
1 files changed, 0 insertions, 13 deletions
diff --git a/activerecord/lib/active_record/associations/builder/singular_association.rb b/activerecord/lib/active_record/associations/builder/singular_association.rb
index 638a2ec72a..0cbbba041a 100644
--- a/activerecord/lib/active_record/associations/builder/singular_association.rb
+++ b/activerecord/lib/active_record/associations/builder/singular_association.rb
@@ -13,19 +13,6 @@ module ActiveRecord::Associations::Builder
private
- def define_readers
- super
- name = self.name
-
- model.redefine_method("#{name}_loaded?") do
- ActiveSupport::Deprecation.warn(
- "Calling obj.#{name}_loaded? is deprecated. Please use " \
- "obj.association(:#{name}).loaded? instead."
- )
- association(name).loaded?
- end
- end
-
def define_constructors
name = self.name