1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Copy-edit the Per Thread attribute accessor documentation

[ci skip]
This commit is contained in:
Rafael Mendonça França 2015-12-17 13:25:16 -02:00
parent d9d8fca780
commit ff85101730

View file

@ -15,7 +15,7 @@ class Module
# end
#
# Current.user # => nil
# Thread.current[:attr_Current_user] = "DHH"
# Thread.thread_variable_set("attr_Current_user", "DHH")
# Current.user # => "DHH"
#
# The attribute name must be a valid method name in Ruby.
@ -63,7 +63,7 @@ class Module
# end
#
# Current.user = "DHH"
# Thread.current[:attr_Current_user] # => "DHH"
# Thread.thread_variable_get("attr_Current_user") # => "DHH"
#
# If you want to opt out the instance writer method, pass
# <tt>instance_writer: false</tt> or <tt>instance_accessor: false</tt>.
@ -111,7 +111,7 @@ class Module
# class Customer < Account
# end
#
# Customer.user = "DHH"
# Customer.user = "Rafael"
# Account.user # => "DHH"
#
# To opt out of the instance writer method, pass <tt>instance_writer: false</tt>.