From b1589f671224adbb30eb54799483218376752411 Mon Sep 17 00:00:00 2001 From: Fabian Mersch Date: Tue, 31 Jul 2018 11:44:56 +0200 Subject: Fix example in thread_mattr_accessor documentation --- .../active_support/core_ext/module/attribute_accessors_per_thread.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 instance_accessor: false, 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 -- cgit v1.2.3