@@ -17,7 +17,7 @@ module Accessors
1717 #
1818 # @param [ String | Symbol ] name The name of the association.
1919 # @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.
2121 # @param [ Hash ] selected_fields Fields which were retrieved via #only.
2222 # If selected_fields is specified, fields not listed in it will not be
2323 # accessible in the built document.
@@ -34,7 +34,7 @@ def __build__(name, object, association, selected_fields = nil)
3434 # person.create_relation(document, association)
3535 #
3636 # @param [ Document | Array<Document> ] object The association target.
37- # @param [ Association ] association The association metadata.
37+ # @param [ Mongoid:: Association::Relatable ] association The association metadata.
3838 # @param [ Hash ] selected_fields Fields which were retrieved via #only.
3939 # If selected_fields is specified, fields not listed in it will not be
4040 # accessible in the created association document.
@@ -99,7 +99,7 @@ def set_relation(name, relation)
9999 # document.get_relation(:name, association)
100100 #
101101 # @param [ Symbol ] name The name of the association.
102- # @param [ Association ] association The association metadata.
102+ # @param [ Mongoid:: Association::Relatable ] association The association metadata.
103103 # @param [ Object ] object The object used to build the association.
104104 # @param [ true | false ] reload If the association is to be reloaded.
105105 #
@@ -268,7 +268,7 @@ def parse_args(*args)
268268 # person.has_game?
269269 # person.game?
270270 #
271- # @param [ Association ] association The association.
271+ # @param [ Mongoid:: Association::Relatable ] association The association.
272272 #
273273 # @return [ Class ] The model being set up.
274274 def self . define_existence_check! ( association )
@@ -290,7 +290,7 @@ def #{name}?
290290 # @example Set up the getter for the association.
291291 # Person.define_getter!(association)
292292 #
293- # @param [ Association ] association The association metadata for the association.
293+ # @param [ Mongoid:: Association::Relatable ] association The association metadata for the association.
294294 #
295295 # @return [ Class ] The class being set up.
296296 def self . define_getter! ( association )
@@ -312,7 +312,7 @@ def self.define_getter!(association)
312312 # @example Set up the ids getter for the association.
313313 # Person.define_ids_getter!(association)
314314 #
315- # @param [ Association ] association The association metadata for the association.
315+ # @param [ Mongoid:: Association::Relatable ] association The association metadata for the association.
316316 #
317317 # @return [ Class ] The class being set up.
318318 def self . define_ids_getter! ( association )
@@ -332,7 +332,7 @@ def self.define_ids_getter!(association)
332332 # @example Set up the setter for the association.
333333 # Person.define_setter!(association)
334334 #
335- # @param [ Association ] association The association metadata for the association.
335+ # @param [ Mongoid:: Association::Relatable ] association The association metadata for the association.
336336 #
337337 # @return [ Class ] The class being set up.
338338 def self . define_setter! ( association )
@@ -364,7 +364,7 @@ def self.define_setter!(association)
364364 # @example Set up the id_setter for the association.
365365 # Person.define_ids_setter!(association)
366366 #
367- # @param [ Association ] association The association for the association.
367+ # @param [ Mongoid:: Association::Relatable ] association The association for the association.
368368 #
369369 # @return [ Class ] The class being set up.
370370 def self . define_ids_setter! ( association )
@@ -383,7 +383,7 @@ def self.define_ids_setter!(association)
383383 # @example
384384 # Person.define_builder!(association)
385385 #
386- # @param [ Association ] association The association for the association.
386+ # @param [ Mongoid:: Association::Relatable ] association The association for the association.
387387 #
388388 # @return [ Class ] The class being set up.
389389 def self . define_builder! ( association )
@@ -408,7 +408,7 @@ def self.define_builder!(association)
408408 # @example
409409 # Person.define_creator!(association)
410410 #
411- # @param [ Association ] association The association for the association.
411+ # @param [ Mongoid:: Association::Relatable ] association The association for the association.
412412 #
413413 # @return [ Class ] The class being set up.
414414 def self . define_creator! ( association )
0 commit comments