aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext/class
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2009-04-22 16:41:06 -0700
committerJeremy Kemper <jeremy@bitsweat.net>2009-04-22 16:42:14 -0700
commitf5d720fb96f2e085acc4ed17f63272c4d38e567e (patch)
tree01d83252d6fe6f090668a860a7f22912c657a600 /activesupport/lib/active_support/core_ext/class
parentab321268f86d9013cbd4ecd0b5f46e7b05ec55a9 (diff)
downloadrails-f5d720fb96f2e085acc4ed17f63272c4d38e567e.tar.gz
rails-f5d720fb96f2e085acc4ed17f63272c4d38e567e.tar.bz2
rails-f5d720fb96f2e085acc4ed17f63272c4d38e567e.zip
Opt in to Dependencies
Diffstat (limited to 'activesupport/lib/active_support/core_ext/class')
-rw-r--r--activesupport/lib/active_support/core_ext/class/delegating_attributes.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/activesupport/lib/active_support/core_ext/class/delegating_attributes.rb b/activesupport/lib/active_support/core_ext/class/delegating_attributes.rb
index da798c67e7..b0784d8416 100644
--- a/activesupport/lib/active_support/core_ext/class/delegating_attributes.rb
+++ b/activesupport/lib/active_support/core_ext/class/delegating_attributes.rb
@@ -1,3 +1,5 @@
+require 'active_support/core_ext/blank'
+
class Class
def superclass_delegating_reader(*names)
class_name_to_stop_searching_on = superclass.name.blank? ? "Object" : superclass.name