Skip to content

Commit aa69684

Browse files
Link using rdoc-ref instead of rdoc-label [ci-skip]
This causes the links to be treated as code references and formatted as monospace.
1 parent 3720fbb commit aa69684

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

activemodel/lib/active_model/dirty.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ module ActiveModel
108108
# person.changes # => {"name" => ["Bill", "Bob"]}
109109
#
110110
# If an attribute is modified in-place then make use of
111-
# {*_will_change!}[rdoc-label:method-i-2A_will_change-21] to mark that the attribute is changing.
111+
# {*_will_change!}[rdoc-ref:#*_will_change!] to mark that the attribute is changing.
112112
# Otherwise \Active \Model can't track changes to in-place attributes. Note
113113
# that Active Record can detect in-place modifications automatically. You do
114114
# not need to call <tt>*_will_change!</tt> on Active Record models.
@@ -296,22 +296,22 @@ def changed
296296
mutations_from_database.changed_attribute_names
297297
end
298298

299-
# Dispatch target for {*_changed?}[rdoc-label:method-i-2A_changed-3F] attribute methods.
299+
# Dispatch target for {*_changed?}[rdoc-ref:#*_changed?] attribute methods.
300300
def attribute_changed?(attr_name, **options)
301301
mutations_from_database.changed?(attr_name.to_s, **options)
302302
end
303303

304-
# Dispatch target for {*_was}[rdoc-label:method-i-2A_was] attribute methods.
304+
# Dispatch target for {*_was}[rdoc-ref:#*_was] attribute methods.
305305
def attribute_was(attr_name)
306306
mutations_from_database.original_value(attr_name.to_s)
307307
end
308308

309-
# Dispatch target for {*_previously_changed?}[rdoc-label:method-i-2A_previously_changed-3F] attribute methods.
309+
# Dispatch target for {*_previously_changed?}[rdoc-ref:#*_previously_changed?] attribute methods.
310310
def attribute_previously_changed?(attr_name, **options)
311311
mutations_before_last_save.changed?(attr_name.to_s, **options)
312312
end
313313

314-
# Dispatch target for {*_previously_was}[rdoc-label:method-i-2A_previously_was] attribute methods.
314+
# Dispatch target for {*_previously_was}[rdoc-ref:#*_previously_was] attribute methods.
315315
def attribute_previously_was(attr_name)
316316
mutations_before_last_save.original_value(attr_name.to_s)
317317
end

0 commit comments

Comments
 (0)