diff options
author | Arun Agrawal <arunagw@gmail.com> | 2013-07-03 19:42:34 +0200 |
---|---|---|
committer | Arun Agrawal <arunagw@gmail.com> | 2013-07-03 19:42:34 +0200 |
commit | c9bbac46ddfc68caff6cd8a95c8d0fd045bd9201 (patch) | |
tree | 2c382d9c95e08b246fbce65ac9701262e8ace509 /activesupport/lib | |
parent | 028f91277defa7742c78788db69db3082b4f70e0 (diff) | |
download | rails-c9bbac46ddfc68caff6cd8a95c8d0fd045bd9201.tar.gz rails-c9bbac46ddfc68caff6cd8a95c8d0fd045bd9201.tar.bz2 rails-c9bbac46ddfc68caff6cd8a95c8d0fd045bd9201.zip |
Remove deprecated `Module#local_constant_names`
in favor of `Module#local_constants`
Diffstat (limited to 'activesupport/lib')
-rw-r--r-- | activesupport/lib/active_support/core_ext/module/introspection.rb | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/activesupport/lib/active_support/core_ext/module/introspection.rb b/activesupport/lib/active_support/core_ext/module/introspection.rb index 08e5f8a5c3..f1d26ef28f 100644 --- a/activesupport/lib/active_support/core_ext/module/introspection.rb +++ b/activesupport/lib/active_support/core_ext/module/introspection.rb @@ -59,20 +59,4 @@ class Module def local_constants #:nodoc: constants(false) end - - # *DEPRECATED*: Use +local_constants+ instead. - # - # Returns the names of the constants defined locally as strings. - # - # module M - # X = 1 - # end - # M.local_constant_names # => ["X"] - # - # This method is useful for forward compatibility, since Ruby 1.8 returns - # constant names as strings, whereas 1.9 returns them as symbols. - def local_constant_names - ActiveSupport::Deprecation.warn 'Module#local_constant_names is deprecated, use Module#local_constants instead' - local_constants.map { |c| c.to_s } - end end |