Merge pull request #48325 from zzak/am-api-links

Fix linking on ActiveModel::API
This commit is contained in:
zzak 2023-05-29 12:47:42 +09:00 committed by GitHub
commit 294be7c7de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -4,7 +4,7 @@ module ActiveModel
# = Active \Model \API
#
# Includes the required interface for an object to interact with
# Action Pack and Action View, using different Active Model modules.
# Action Pack and Action View, using different Active \Model modules.
# It includes model name introspections, conversions, translations, and
# validations. Besides that, it allows you to initialize the object with a
# hash of attributes, pretty much like Active Record does.
@ -20,7 +20,7 @@ module ActiveModel
# person.name # => "bob"
# person.age # => "18"
#
# Note that, by default, +ActiveModel::API+ implements <tt>persisted?</tt>
# Note that, by default, +ActiveModel::API+ implements #persisted?
# to return +false+, which is the most common case. You may want to override
# it in your class to simulate a different scenario:
#
@ -36,7 +36,7 @@ module ActiveModel
# person = Person.new(id: 1, name: 'bob')
# person.persisted? # => true
#
# Also, if for some reason you need to run code on <tt>initialize</tt>, make
# Also, if for some reason you need to run code on initialize ( ::new ), make
# sure you call +super+ if you want the attributes hash initialization to
# happen.
#