@@ -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 )
@@ -363,7 +363,7 @@ def self.define_setter!(association)
363363 # @example Set up the id_setter for the association.
364364 # Person.define_ids_setter!(association)
365365 #
366- # @param [ Association ] association The association for the association.
366+ # @param [ Mongoid:: Association::Relatable ] association The association for the association.
367367 #
368368 # @return [ Class ] The class being set up.
369369 def self . define_ids_setter! ( association )
@@ -382,7 +382,7 @@ def self.define_ids_setter!(association)
382382 # @example
383383 # Person.define_builder!(association)
384384 #
385- # @param [ Association ] association The association for the association.
385+ # @param [ Mongoid:: Association::Relatable ] association The association for the association.
386386 #
387387 # @return [ Class ] The class being set up.
388388 def self . define_builder! ( association )
@@ -407,7 +407,7 @@ def self.define_builder!(association)
407407 # @example
408408 # Person.define_creator!(association)
409409 #
410- # @param [ Association ] association The association for the association.
410+ # @param [ Mongoid:: Association::Relatable ] association The association for the association.
411411 #
412412 # @return [ Class ] The class being set up.
413413 def self . define_creator! ( association )
0 commit comments