aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/concern.rb
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2009-05-29 17:03:23 -0500
committerJoshua Peek <josh@joshpeek.com>2009-05-29 17:03:23 -0500
commit669fd84910586d4c791b6f5bf4320f68ac7845aa (patch)
treeec246bdf6fe6fc61219c59837c4bec07ba19e267 /activesupport/lib/active_support/concern.rb
parentc7c35be8fe30b3e29a5d05edae767f7d6a286911 (diff)
downloadrails-669fd84910586d4c791b6f5bf4320f68ac7845aa.tar.gz
rails-669fd84910586d4c791b6f5bf4320f68ac7845aa.tar.bz2
rails-669fd84910586d4c791b6f5bf4320f68ac7845aa.zip
AS::Concern redefines "include" to lazy include modules as dependencies
Diffstat (limited to 'activesupport/lib/active_support/concern.rb')
-rw-r--r--activesupport/lib/active_support/concern.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/activesupport/lib/active_support/concern.rb b/activesupport/lib/active_support/concern.rb
index a09a2420b3..dcf1e8152f 100644
--- a/activesupport/lib/active_support/concern.rb
+++ b/activesupport/lib/active_support/concern.rb
@@ -19,5 +19,7 @@ module ActiveSupport
super
end
end
+
+ alias_method :include, :depends_on
end
end