@@ -17,7 +17,7 @@ module Accessors
17
17
#
18
18
# @param [ String | Symbol ] name The name of the association.
19
19
# @param [ Hash | BSON::ObjectId ] object The id or attributes to use.
20
- # @param [ Association ] association The association metadata.
20
+ # @param [ Mongoid:: Association::Relatable ] association The association metadata.
21
21
# @param [ Hash ] selected_fields Fields which were retrieved via #only.
22
22
# If selected_fields is specified, fields not listed in it will not be
23
23
# accessible in the built document.
@@ -34,7 +34,7 @@ def __build__(name, object, association, selected_fields = nil)
34
34
# person.create_relation(document, association)
35
35
#
36
36
# @param [ Document | Array<Document> ] object The association target.
37
- # @param [ Association ] association The association metadata.
37
+ # @param [ Mongoid:: Association::Relatable ] association The association metadata.
38
38
# @param [ Hash ] selected_fields Fields which were retrieved via #only.
39
39
# If selected_fields is specified, fields not listed in it will not be
40
40
# accessible in the created association document.
@@ -99,7 +99,7 @@ def set_relation(name, relation)
99
99
# document.get_relation(:name, association)
100
100
#
101
101
# @param [ Symbol ] name The name of the association.
102
- # @param [ Association ] association The association metadata.
102
+ # @param [ Mongoid:: Association::Relatable ] association The association metadata.
103
103
# @param [ Object ] object The object used to build the association.
104
104
# @param [ true | false ] reload If the association is to be reloaded.
105
105
#
@@ -268,7 +268,7 @@ def parse_args(*args)
268
268
# person.has_game?
269
269
# person.game?
270
270
#
271
- # @param [ Association ] association The association.
271
+ # @param [ Mongoid:: Association::Relatable ] association The association.
272
272
#
273
273
# @return [ Class ] The model being set up.
274
274
def self . define_existence_check! ( association )
@@ -290,7 +290,7 @@ def #{name}?
290
290
# @example Set up the getter for the association.
291
291
# Person.define_getter!(association)
292
292
#
293
- # @param [ Association ] association The association metadata for the association.
293
+ # @param [ Mongoid:: Association::Relatable ] association The association metadata for the association.
294
294
#
295
295
# @return [ Class ] The class being set up.
296
296
def self . define_getter! ( association )
@@ -312,7 +312,7 @@ def self.define_getter!(association)
312
312
# @example Set up the ids getter for the association.
313
313
# Person.define_ids_getter!(association)
314
314
#
315
- # @param [ Association ] association The association metadata for the association.
315
+ # @param [ Mongoid:: Association::Relatable ] association The association metadata for the association.
316
316
#
317
317
# @return [ Class ] The class being set up.
318
318
def self . define_ids_getter! ( association )
@@ -332,7 +332,7 @@ def self.define_ids_getter!(association)
332
332
# @example Set up the setter for the association.
333
333
# Person.define_setter!(association)
334
334
#
335
- # @param [ Association ] association The association metadata for the association.
335
+ # @param [ Mongoid:: Association::Relatable ] association The association metadata for the association.
336
336
#
337
337
# @return [ Class ] The class being set up.
338
338
def self . define_setter! ( association )
@@ -363,7 +363,7 @@ def self.define_setter!(association)
363
363
# @example Set up the id_setter for the association.
364
364
# Person.define_ids_setter!(association)
365
365
#
366
- # @param [ Association ] association The association for the association.
366
+ # @param [ Mongoid:: Association::Relatable ] association The association for the association.
367
367
#
368
368
# @return [ Class ] The class being set up.
369
369
def self . define_ids_setter! ( association )
@@ -382,7 +382,7 @@ def self.define_ids_setter!(association)
382
382
# @example
383
383
# Person.define_builder!(association)
384
384
#
385
- # @param [ Association ] association The association for the association.
385
+ # @param [ Mongoid:: Association::Relatable ] association The association for the association.
386
386
#
387
387
# @return [ Class ] The class being set up.
388
388
def self . define_builder! ( association )
@@ -407,7 +407,7 @@ def self.define_builder!(association)
407
407
# @example
408
408
# Person.define_creator!(association)
409
409
#
410
- # @param [ Association ] association The association for the association.
410
+ # @param [ Mongoid:: Association::Relatable ] association The association for the association.
411
411
#
412
412
# @return [ Class ] The class being set up.
413
413
def self . define_creator! ( association )
0 commit comments