mirror of https://github.com/rails/rails
Fix example in thread_mattr_accessor documentation
This commit is contained in:
parent
0f6a4891fe
commit
b1589f6712
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue