@@ -24,8 +24,6 @@ module Accessors
24
24
# accessible in the built document.
25
25
#
26
26
# @return [ Proxy ] The association.
27
- #
28
- # @since 2.0.0.rc.1
29
27
def __build__ ( name , object , association , selected_fields = nil )
30
28
relation = create_relation ( object , association , selected_fields )
31
29
set_relation ( name , relation )
@@ -43,8 +41,6 @@ def __build__(name, object, association, selected_fields = nil)
43
41
# accessible in the created association document.
44
42
#
45
43
# @return [ Proxy ] The association.
46
- #
47
- # @since 2.0.0.rc.1
48
44
def create_relation ( object , association , selected_fields = nil )
49
45
type = @attributes [ association . inverse_type ]
50
46
target = association . build ( self , object , type , selected_fields )
@@ -58,8 +54,6 @@ def create_relation(object, association, selected_fields = nil)
58
54
# person.reset_relation_criteria(:preferences)
59
55
#
60
56
# @param [ Symbol ] name The name of the association.
61
- #
62
- # @since 3.0.14
63
57
def reset_relation_criteria ( name )
64
58
if instance_variable_defined? ( "@_#{ name } " )
65
59
send ( name ) . reset_unloaded
@@ -76,8 +70,6 @@ def reset_relation_criteria(name)
76
70
# @param [ Proxy ] relation The association to set.
77
71
#
78
72
# @return [ Proxy ] The association.
79
- #
80
- # @since 2.0.0.rc.1
81
73
def set_relation ( name , relation )
82
74
instance_variable_set ( "@_#{ name } " , relation )
83
75
end
@@ -98,8 +90,6 @@ def set_relation(name, relation)
98
90
# @param [ true, false ] reload If the association is to be reloaded.
99
91
#
100
92
# @return [ Proxy ] The association.
101
- #
102
- # @since 3.0.16
103
93
def get_relation ( name , association , object , reload = false )
104
94
if !reload && ( value = ivar ( name ) ) != false
105
95
value
@@ -209,8 +199,6 @@ def needs_no_database_query?(object, association)
209
199
# document.without_autobuild?
210
200
#
211
201
# @return [ true, false ] If autobuild is disabled.
212
- #
213
- # @since 3.0.0
214
202
def without_autobuild?
215
203
Threaded . executing? ( :without_autobuild )
216
204
end
@@ -223,8 +211,6 @@ def without_autobuild?
223
211
# end
224
212
#
225
213
# @return [ Object ] The result of the yield.
226
- #
227
- # @since 3.0.0
228
214
def without_autobuild
229
215
Threaded . begin_execution ( "without_autobuild" )
230
216
yield
@@ -241,8 +227,6 @@ def without_autobuild
241
227
# @param [ Array ] args The arguments.
242
228
#
243
229
# @return [ Array<Hash> ] The attributes and options.
244
- #
245
- # @since 2.3.4
246
230
def parse_args ( *args )
247
231
[ args . first || { } , args . size > 1 ? args [ 1 ] : { } ]
248
232
end
@@ -260,8 +244,6 @@ def parse_args(*args)
260
244
# @param [ Association ] association The association.
261
245
#
262
246
# @return [ Class ] The model being set up.
263
- #
264
- # @since 3.0.0
265
247
def self . define_existence_check! ( association )
266
248
name = association . name
267
249
association . inverse_class . tap do |klass |
@@ -284,8 +266,6 @@ def #{name}?
284
266
# @param [ Association ] association The association metadata for the association.
285
267
#
286
268
# @return [ Class ] The class being set up.
287
- #
288
- # @since 2.0.0.rc.1
289
269
def self . define_getter! ( association )
290
270
name = association . name
291
271
association . inverse_class . tap do |klass |
@@ -328,8 +308,6 @@ def self.define_ids_getter!(association)
328
308
# @param [ Association ] association The association metadata for the association.
329
309
#
330
310
# @return [ Class ] The class being set up.
331
- #
332
- # @since 2.0.0.rc.1
333
311
def self . define_setter! ( association )
334
312
name = association . name
335
313
association . inverse_class . tap do |klass |
@@ -380,8 +358,6 @@ def self.define_ids_setter!(association)
380
358
# @param [ Association ] association The association for the association.
381
359
#
382
360
# @return [ Class ] The class being set up.
383
- #
384
- # @since 2.0.0.rc.1
385
361
def self . define_builder! ( association )
386
362
name = association . name
387
363
association . inverse_class . tap do |klass |
@@ -407,8 +383,6 @@ def self.define_builder!(association)
407
383
# @param [ Association ] association The association for the association.
408
384
#
409
385
# @return [ Class ] The class being set up.
410
- #
411
- # @since 2.0.0.rc.1
412
386
def self . define_creator! ( association )
413
387
name = association . name
414
388
association . inverse_class . tap do |klass |
0 commit comments