aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorFabian Mersch <fabianmersch@gmail.com>2018-07-31 11:44:56 +0200
committerGitHub <noreply@github.com>2018-07-31 11:44:56 +0200
commitb1589f671224adbb30eb54799483218376752411 (patch)
tree03a5b5d9de745916b331961d3089ddbf883ec601 /activesupport
parent0f6a4891fee41a083a80292c7b27d5822b6f6db6 (diff)
downloadrails-b1589f671224adbb30eb54799483218376752411.tar.gz
rails-b1589f671224adbb30eb54799483218376752411.tar.bz2
rails-b1589f671224adbb30eb54799483218376752411.zip
Fix example in thread_mattr_accessor documentation
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb2
1 files changed, 1 insertions, 1 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 e777f02cb6..b1788a000b 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
@@ -136,7 +136,7 @@ class Module
# Or pass <tt>instance_accessor: false</tt>, to opt out both instance methods.
#
# class Current
- # mattr_accessor :user, instance_accessor: false
+ # thread_mattr_accessor :user, instance_accessor: false
# end
#
# Current.new.user = "DHH" # => NoMethodError