diff options
Diffstat (limited to 'activesupport')
-rw-r--r-- | activesupport/lib/active_support/concern.rb | 5 | ||||
-rw-r--r-- | activesupport/lib/active_support/testing/declarative.rb | 2 | ||||
-rw-r--r-- | activesupport/lib/active_support/testing/isolation.rb | 2 |
3 files changed, 4 insertions, 5 deletions
diff --git a/activesupport/lib/active_support/concern.rb b/activesupport/lib/active_support/concern.rb index c94a8d99f4..b927b58a9a 100644 --- a/activesupport/lib/active_support/concern.rb +++ b/activesupport/lib/active_support/concern.rb @@ -56,7 +56,7 @@ module ActiveSupport # these from +Host+ directly including +Foo+ in +Bar+: # # module Bar - # include Foo + # include Foo # def self.included(base) # base.method_injected_by_foo # end @@ -94,9 +94,8 @@ module ActiveSupport # class Host # include Bar # works, Bar takes care now of its dependencies # end - # module Concern - def self.extended(base) + def self.extended(base) #:nodoc: base.instance_variable_set("@_dependencies", []) end diff --git a/activesupport/lib/active_support/testing/declarative.rb b/activesupport/lib/active_support/testing/declarative.rb index 1c05d45888..508e37254a 100644 --- a/activesupport/lib/active_support/testing/declarative.rb +++ b/activesupport/lib/active_support/testing/declarative.rb @@ -2,7 +2,7 @@ module ActiveSupport module Testing module Declarative - def self.extended(klass) + def self.extended(klass) #:nodoc: klass.class_eval do unless method_defined?(:describe) diff --git a/activesupport/lib/active_support/testing/isolation.rb b/activesupport/lib/active_support/testing/isolation.rb index 50ec50ca52..27d444fd91 100644 --- a/activesupport/lib/active_support/testing/isolation.rb +++ b/activesupport/lib/active_support/testing/isolation.rb @@ -64,7 +64,7 @@ module ActiveSupport end end - def self.included klass + def self.included(klass) #:nodoc: klass.extend(Module.new { def test_methods ParallelEach.new super |