Merge pull request #48325 from zzak/am-api-links
Fix linking on ActiveModel::API
This commit is contained in:
commit
294be7c7de
@ -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.
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user