aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/concern.rb
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2009-05-29 16:28:54 -0500
committerJoshua Peek <josh@joshpeek.com>2009-05-29 16:28:54 -0500
commitc7c35be8fe30b3e29a5d05edae767f7d6a286911 (patch)
treec1f7aece2c62f276bebb4d9cf6365b5ae4bcb9a6 /activesupport/lib/active_support/concern.rb
parent69742ca8fa05509f7d7c5512cb6d8e002ecb3ab3 (diff)
downloadrails-c7c35be8fe30b3e29a5d05edae767f7d6a286911.tar.gz
rails-c7c35be8fe30b3e29a5d05edae767f7d6a286911.tar.bz2
rails-c7c35be8fe30b3e29a5d05edae767f7d6a286911.zip
AS::Concern includes InstanceMethods module if it exists
Diffstat (limited to 'activesupport/lib/active_support/concern.rb')
-rw-r--r--activesupport/lib/active_support/concern.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/activesupport/lib/active_support/concern.rb b/activesupport/lib/active_support/concern.rb
index 154f8807f7..a09a2420b3 100644
--- a/activesupport/lib/active_support/concern.rb
+++ b/activesupport/lib/active_support/concern.rb
@@ -7,6 +7,7 @@ module ActiveSupport
def append_features(base)
if super
base.extend const_get("ClassMethods") if const_defined?("ClassMethods")
+ base.send :include, const_get("InstanceMethods") if const_defined?("InstanceMethods")
base.class_eval(&@_included_block) if instance_variable_defined?("@_included_block")
end
end