Skip to content

Commit dcccc38

Browse files
committed
Change wording of some instances of 'opt out' [ci skip]
1 parent f2cd46b commit dcccc38

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

activesupport/lib/active_support/configurable.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ def configure
6767
# end
6868
# # => NameError: invalid config attribute name
6969
#
70-
# To opt out of the instance writer method, pass <tt>instance_writer: false</tt>.
71-
# To opt out of the instance reader method, pass <tt>instance_reader: false</tt>.
70+
# To omit the instance writer method, pass <tt>instance_writer: false</tt>.
71+
# To omit the instance reader method, pass <tt>instance_reader: false</tt>.
7272
#
7373
# class User
7474
# include ActiveSupport::Configurable
@@ -81,7 +81,7 @@ def configure
8181
# User.new.allowed_access = true # => NoMethodError
8282
# User.new.allowed_access # => NoMethodError
8383
#
84-
# Or pass <tt>instance_accessor: false</tt>, to opt out both instance methods.
84+
# Or pass <tt>instance_accessor: false</tt>, to omit both instance methods.
8585
#
8686
# class User
8787
# include ActiveSupport::Configurable

activesupport/lib/active_support/core_ext/module/attribute_accessors.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class Module
2424
# end
2525
# # => NameError: invalid attribute name: 1_Badname
2626
#
27-
# If you want to opt out the creation on the instance reader method, pass
27+
# To omit the instance reader method, pass
2828
# <tt>instance_reader: false</tt> or <tt>instance_accessor: false</tt>.
2929
#
3030
# module HairColors
@@ -91,7 +91,7 @@ def #{sym}
9191
# Person.new.hair_colors = [:blonde, :red]
9292
# HairColors.class_variable_get("@@hair_colors") # => [:blonde, :red]
9393
#
94-
# If you want to opt out the instance writer method, pass
94+
# To omit the instance writer method, pass
9595
# <tt>instance_writer: false</tt> or <tt>instance_accessor: false</tt>.
9696
#
9797
# module HairColors
@@ -166,8 +166,8 @@ def #{sym}=(obj)
166166
# Citizen.new.hair_colors << :blue
167167
# Person.new.hair_colors # => [:brown, :black, :blonde, :red, :blue]
168168
#
169-
# To opt out of the instance writer method, pass <tt>instance_writer: false</tt>.
170-
# To opt out of the instance reader method, pass <tt>instance_reader: false</tt>.
169+
# To omit the instance writer method, pass <tt>instance_writer: false</tt>.
170+
# To omit the instance reader method, pass <tt>instance_reader: false</tt>.
171171
#
172172
# module HairColors
173173
# mattr_accessor :hair_colors, instance_writer: false, instance_reader: false
@@ -180,7 +180,7 @@ def #{sym}=(obj)
180180
# Person.new.hair_colors = [:brown] # => NoMethodError
181181
# Person.new.hair_colors # => NoMethodError
182182
#
183-
# Or pass <tt>instance_accessor: false</tt>, to opt out both instance methods.
183+
# Or pass <tt>instance_accessor: false</tt>, to omit both instance methods.
184184
#
185185
# module HairColors
186186
# mattr_accessor :hair_colors, instance_accessor: false

activesupport/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class Module
2525
# end
2626
# # => NameError: invalid attribute name: 1_Badname
2727
#
28-
# If you want to opt out of the creation of the instance reader method, pass
28+
# To omit the instance reader method, pass
2929
# <tt>instance_reader: false</tt> or <tt>instance_accessor: false</tt>.
3030
#
3131
# class Current
@@ -66,7 +66,7 @@ def #{sym}
6666
# Current.user = "DHH"
6767
# Thread.current[:attr_Current_user] # => "DHH"
6868
#
69-
# If you want to opt out of the creation of the instance writer method, pass
69+
# To omit the instance writer method, pass
7070
# <tt>instance_writer: false</tt> or <tt>instance_accessor: false</tt>.
7171
#
7272
# class Current
@@ -118,8 +118,8 @@ def #{sym}=(obj)
118118
# Customer.user # => "Rafael"
119119
# Account.user # => "DHH"
120120
#
121-
# To opt out of the instance writer method, pass <tt>instance_writer: false</tt>.
122-
# To opt out of the instance reader method, pass <tt>instance_reader: false</tt>.
121+
# To omit the instance writer method, pass <tt>instance_writer: false</tt>.
122+
# To omit the instance reader method, pass <tt>instance_reader: false</tt>.
123123
#
124124
# class Current
125125
# thread_mattr_accessor :user, instance_writer: false, instance_reader: false
@@ -128,7 +128,7 @@ def #{sym}=(obj)
128128
# Current.new.user = "DHH" # => NoMethodError
129129
# Current.new.user # => NoMethodError
130130
#
131-
# Or pass <tt>instance_accessor: false</tt>, to opt out both instance methods.
131+
# Or pass <tt>instance_accessor: false</tt>, to omit both instance methods.
132132
#
133133
# class Current
134134
# thread_mattr_accessor :user, instance_accessor: false

0 commit comments

Comments
 (0)