aboutsummaryrefslogtreecommitdiffstats
path: root/guides
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2016-03-01 14:40:17 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2016-03-01 14:40:17 -0300
commit56f3bbc5b0920e44fcac83ed2d38eb90b3744183 (patch)
tree63709bb5c06903fab44db557f33dfbf71e557856 /guides
parentbc57930e09d20ee2cdc4b5aa7200b155ba755f22 (diff)
parent86d4e189580e84c4b7effc0c3ebd25b4e8dc4fee (diff)
downloadrails-56f3bbc5b0920e44fcac83ed2d38eb90b3744183.tar.gz
rails-56f3bbc5b0920e44fcac83ed2d38eb90b3744183.tar.bz2
rails-56f3bbc5b0920e44fcac83ed2d38eb90b3744183.zip
Merge pull request #23936 from yui-knk/local_constants_to_be_public
Deprecate `Module.local_constants`
Diffstat (limited to 'guides')
-rw-r--r--guides/source/active_support_core_extensions.md23
1 files changed, 0 insertions, 23 deletions
diff --git a/guides/source/active_support_core_extensions.md b/guides/source/active_support_core_extensions.md
index e66b9a4301..b994c863d1 100644
--- a/guides/source/active_support_core_extensions.md
+++ b/guides/source/active_support_core_extensions.md
@@ -709,29 +709,6 @@ M.parents # => [X::Y, X, Object]
NOTE: Defined in `active_support/core_ext/module/introspection.rb`.
-### Constants
-
-The method `local_constants` returns the names of the constants that have been
-defined in the receiver module:
-
-```ruby
-module X
- X1 = 1
- X2 = 2
- module Y
- Y1 = :y1
- X1 = :overrides_X1_above
- end
-end
-
-X.local_constants # => [:X1, :X2, :Y]
-X::Y.local_constants # => [:Y1, :X1]
-```
-
-The names are returned as symbols.
-
-NOTE: Defined in `active_support/core_ext/module/introspection.rb`.
-
#### Qualified Constant Names
The standard methods `const_defined?`, `const_get`, and `const_set` accept