Skip to content

Commit 3a5cb82

Browse files
Use monospace formatting [ci-skip]
1 parent a08a43b commit 3a5cb82

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

activerecord/lib/active_record/delegated_type.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -207,17 +207,17 @@ module DelegatedType
207207
# The +options+ are passed directly to the +belongs_to+ call, so this is where you declare +dependent+ etc.
208208
# The following options can be included to specialize the behavior of the delegated type convenience methods.
209209
#
210-
# [:foreign_key]
210+
# [+:foreign_key+]
211211
# Specify the foreign key used for the convenience methods. By default this is guessed to be the passed
212212
# +role+ with an "_id" suffix. So a class that defines a
213213
# <tt>delegated_type :entryable, types: %w[ Message Comment ]</tt> association will use "entryable_id" as
214214
# the default <tt>:foreign_key</tt>.
215-
# [:foreign_type]
215+
# [+:foreign_type+]
216216
# Specify the column used to store the associated object's type. By default this is inferred to be the passed
217217
# +role+ with a "_type" suffix. A class that defines a
218218
# <tt>delegated_type :entryable, types: %w[ Message Comment ]</tt> association will use "entryable_type" as
219219
# the default <tt>:foreign_type</tt>.
220-
# [:primary_key]
220+
# [+:primary_key+]
221221
# Specify the method that returns the primary key of associated object used for the convenience methods.
222222
# By default this is +id+.
223223
#

0 commit comments

Comments
 (0)