diff options
author | Hongli Lai (Phusion) <hongli@phusion.nl> | 2008-08-27 15:48:14 +0200 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2008-08-29 15:15:40 -0700 |
commit | 204a8cce88d986fcfafe01ce9ba44818739374c3 (patch) | |
tree | 6eb7e01a9b14784d9a06614a29982593a7fb8416 /activesupport/lib/active_support/core_ext/module.rb | |
parent | 7f179f8540ab92dbd9d3e650b465de5b694d93d4 (diff) | |
download | rails-204a8cce88d986fcfafe01ce9ba44818739374c3.tar.gz rails-204a8cce88d986fcfafe01ce9ba44818739374c3.tar.bz2 rails-204a8cce88d986fcfafe01ce9ba44818739374c3.zip |
Move some core extension methods into a module under the ActiveSupport::CoreExtensions namespace, instead of extending core classes directly. This is more friendly for API reference generators.
[#915 state:resolved]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
Diffstat (limited to 'activesupport/lib/active_support/core_ext/module.rb')
-rw-r--r-- | activesupport/lib/active_support/core_ext/module.rb | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/core_ext/module.rb b/activesupport/lib/active_support/core_ext/module.rb index 34fcbd124b..641bb59eca 100644 --- a/activesupport/lib/active_support/core_ext/module.rb +++ b/activesupport/lib/active_support/core_ext/module.rb @@ -8,6 +8,15 @@ require 'active_support/core_ext/module/loading' require 'active_support/core_ext/module/aliasing' require 'active_support/core_ext/module/model_naming' +module ActiveSupport + module CoreExtensions + # Various extensions for the Ruby core Module class. + module Module + # Nothing here. Only defined for API documentation purposes. + end + end +end + class Module - include ActiveSupport::CoreExt::Module::ModelNaming + include ActiveSupport::CoreExtensions::Module end |