diff options
author | Yves Senn <yves.senn@gmail.com> | 2016-10-20 21:20:03 +0200 |
---|---|---|
committer | Yves Senn <yves.senn@gmail.com> | 2016-10-20 21:21:55 +0200 |
commit | dce4751a74342bd94802eb49b411663b66ace28b (patch) | |
tree | 483b33eb3bc31ce1781bced9f33b61ea6103ddac /activesupport/lib | |
parent | dba9ce8ec87f99a5be830043c3fb9a745f983a93 (diff) | |
download | rails-dce4751a74342bd94802eb49b411663b66ace28b.tar.gz rails-dce4751a74342bd94802eb49b411663b66ace28b.tar.bz2 rails-dce4751a74342bd94802eb49b411663b66ace28b.zip |
doc, hide non-public methods form the api docs. [ci skip]
This is a follow up to #25681, specifically this comment:
https://github.com/rails/rails/pull/25681#issuecomment-238294002
The way the thread local variable is stored is an implementation detail
and subject to change. It makes no sense to only generate a reader or
writer as you'd have to know where to read from or where it writes to.
Diffstat (limited to 'activesupport/lib')
-rw-r--r-- | activesupport/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb b/activesupport/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb index b1e6fe71e0..1e82b4acc2 100644 --- a/activesupport/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb +++ b/activesupport/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb @@ -34,7 +34,7 @@ class Module # end # # Current.new.user # => NoMethodError - def thread_mattr_reader(*syms) + def thread_mattr_reader(*syms) # :nodoc: options = syms.extract_options! syms.each do |sym| @@ -77,7 +77,7 @@ class Module # end # # Current.new.user = "DHH" # => NoMethodError - def thread_mattr_writer(*syms) + def thread_mattr_writer(*syms) # :nodoc: options = syms.extract_options! syms.each do |sym| raise NameError.new("invalid attribute name: #{sym}") unless /^[_A-Za-z]\w*$/.match?(sym) |