diff options
author | Joshua Peek <josh@joshpeek.com> | 2009-05-29 16:28:54 -0500 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2009-05-29 16:28:54 -0500 |
commit | c7c35be8fe30b3e29a5d05edae767f7d6a286911 (patch) | |
tree | c1f7aece2c62f276bebb4d9cf6365b5ae4bcb9a6 /activesupport/lib | |
parent | 69742ca8fa05509f7d7c5512cb6d8e002ecb3ab3 (diff) | |
download | rails-c7c35be8fe30b3e29a5d05edae767f7d6a286911.tar.gz rails-c7c35be8fe30b3e29a5d05edae767f7d6a286911.tar.bz2 rails-c7c35be8fe30b3e29a5d05edae767f7d6a286911.zip |
AS::Concern includes InstanceMethods module if it exists
Diffstat (limited to 'activesupport/lib')
-rw-r--r-- | activesupport/lib/active_support/concern.rb | 1 |
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 |