File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
activerecord/lib/active_record Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -207,17 +207,17 @@ module DelegatedType
207
207
# The +options+ are passed directly to the +belongs_to+ call, so this is where you declare +dependent+ etc.
208
208
# The following options can be included to specialize the behavior of the delegated type convenience methods.
209
209
#
210
- # [:foreign_key]
210
+ # [+ :foreign_key+ ]
211
211
# Specify the foreign key used for the convenience methods. By default this is guessed to be the passed
212
212
# +role+ with an "_id" suffix. So a class that defines a
213
213
# <tt>delegated_type :entryable, types: %w[ Message Comment ]</tt> association will use "entryable_id" as
214
214
# the default <tt>:foreign_key</tt>.
215
- # [:foreign_type]
215
+ # [+ :foreign_type+ ]
216
216
# Specify the column used to store the associated object's type. By default this is inferred to be the passed
217
217
# +role+ with a "_type" suffix. A class that defines a
218
218
# <tt>delegated_type :entryable, types: %w[ Message Comment ]</tt> association will use "entryable_type" as
219
219
# the default <tt>:foreign_type</tt>.
220
- # [:primary_key]
220
+ # [+ :primary_key+ ]
221
221
# Specify the method that returns the primary key of associated object used for the convenience methods.
222
222
# By default this is +id+.
223
223
#
You can’t perform that action at this time.
0 commit comments