aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2011-12-25 11:11:23 -0800
committerXavier Noria <fxn@hashref.com>2011-12-25 11:11:50 -0800
commit748725e9ce081f6517c68d8f74d254e2079d0d79 (patch)
tree1d3ae4c1e1aaef6659946fbe24b75e16629d2b87 /activesupport
parent40bda760675f7cd05d44c66c6daf1f95161a15de (diff)
downloadrails-748725e9ce081f6517c68d8f74d254e2079d0d79.tar.gz
rails-748725e9ce081f6517c68d8f74d254e2079d0d79.tar.bz2
rails-748725e9ce081f6517c68d8f74d254e2079d0d79.zip
removes the compatibility method Module#method_names
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/CHANGELOG.md3
-rw-r--r--activesupport/lib/active_support/core_ext/module.rb1
-rw-r--r--activesupport/lib/active_support/core_ext/module/method_names.rb5
-rw-r--r--activesupport/lib/active_support/ruby/shim.rb1
4 files changed, 3 insertions, 7 deletions
diff --git a/activesupport/CHANGELOG.md b/activesupport/CHANGELOG.md
index 19aea0b27e..c19d4c7b32 100644
--- a/activesupport/CHANGELOG.md
+++ b/activesupport/CHANGELOG.md
@@ -1,5 +1,8 @@
## Rails 4.0.0 (unreleased) ##
+* Deletes the compatibility method Module#method_names,
+ use Module#methods from now on (which returns symbols). *fxn*
+
* Deletes the compatibility method Module#instance_method_names,
use Module#instance_methods from now on (which returns symbols). *fxn*
diff --git a/activesupport/lib/active_support/core_ext/module.rb b/activesupport/lib/active_support/core_ext/module.rb
index e672e9dca0..f2d4887df6 100644
--- a/activesupport/lib/active_support/core_ext/module.rb
+++ b/activesupport/lib/active_support/core_ext/module.rb
@@ -7,5 +7,4 @@ require 'active_support/core_ext/module/attr_internal'
require 'active_support/core_ext/module/delegation'
require 'active_support/core_ext/module/deprecation'
require 'active_support/core_ext/module/remove_method'
-require 'active_support/core_ext/module/method_names'
require 'active_support/core_ext/module/qualified_const'
diff --git a/activesupport/lib/active_support/core_ext/module/method_names.rb b/activesupport/lib/active_support/core_ext/module/method_names.rb
deleted file mode 100644
index 1de3089ac6..0000000000
--- a/activesupport/lib/active_support/core_ext/module/method_names.rb
+++ /dev/null
@@ -1,5 +0,0 @@
-class Module
- def method_names(*args)
- methods(*args).map { |name| name.to_s }
- end
-end
diff --git a/activesupport/lib/active_support/ruby/shim.rb b/activesupport/lib/active_support/ruby/shim.rb
index fd59677d83..6e1e375e06 100644
--- a/activesupport/lib/active_support/ruby/shim.rb
+++ b/activesupport/lib/active_support/ruby/shim.rb
@@ -17,4 +17,3 @@ require 'active_support/core_ext/string/encoding'
require 'active_support/core_ext/rexml'
require 'active_support/core_ext/time/conversions'
require 'active_support/core_ext/file/path'
-require 'active_support/core_ext/module/method_names'