diff options
author | Rafael França <rafaelmfranca@gmail.com> | 2016-02-04 17:15:24 -0200 |
---|---|---|
committer | Rafael França <rafaelmfranca@gmail.com> | 2016-02-04 17:15:24 -0200 |
commit | 3be9a34e78835a8dafc3438f60afb412613773b9 (patch) | |
tree | 811dff9ebb69f7e933a42464efc4f7f736bef85c | |
parent | ea59b68d7570f596671679fbe91b382bcd130594 (diff) | |
parent | 5a4e878876a5813dca09fbf8b62180e3c1ba7aa6 (diff) | |
download | rails-3be9a34e78835a8dafc3438f60afb412613773b9.tar.gz rails-3be9a34e78835a8dafc3438f60afb412613773b9.tar.bz2 rails-3be9a34e78835a8dafc3438f60afb412613773b9.zip |
Merge pull request #23473 from gsamokovarov/kernel-module-function
Don't publicize Kernel core extensions
-rw-r--r-- | activesupport/lib/active_support/core_ext/kernel/concern.rb | 2 | ||||
-rw-r--r-- | activesupport/lib/active_support/core_ext/kernel/reporting.rb | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/activesupport/lib/active_support/core_ext/kernel/concern.rb b/activesupport/lib/active_support/core_ext/kernel/concern.rb index bf72caa058..18bcc01fa4 100644 --- a/activesupport/lib/active_support/core_ext/kernel/concern.rb +++ b/activesupport/lib/active_support/core_ext/kernel/concern.rb @@ -1,6 +1,8 @@ require 'active_support/core_ext/module/concerning' module Kernel + module_function + # A shortcut to define a toplevel concern, not within a module. # # See Module::Concerning for more. diff --git a/activesupport/lib/active_support/core_ext/kernel/reporting.rb b/activesupport/lib/active_support/core_ext/kernel/reporting.rb index 8afc258df8..d0197af95f 100644 --- a/activesupport/lib/active_support/core_ext/kernel/reporting.rb +++ b/activesupport/lib/active_support/core_ext/kernel/reporting.rb @@ -1,4 +1,6 @@ module Kernel + module_function + # Sets $VERBOSE to nil for the duration of the block and back to its original # value afterwards. # |