activemodel 3.0.6 → 3.0.7.rc1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +5 -0
- data/lib/active_model.rbc +781 -0
- data/lib/active_model/attribute_methods.rbc +4425 -0
- data/lib/active_model/callbacks.rbc +1164 -0
- data/lib/active_model/conversion.rbc +416 -0
- data/lib/active_model/deprecated_error_methods.rbc +899 -0
- data/lib/active_model/dirty.rbc +1538 -0
- data/lib/active_model/errors.rbc +3944 -0
- data/lib/active_model/mass_assignment_security.rbc +1407 -0
- data/lib/active_model/mass_assignment_security/permission_set.rbc +956 -0
- data/lib/active_model/mass_assignment_security/sanitizer.rbc +663 -0
- data/lib/active_model/naming.rbc +1547 -0
- data/lib/active_model/observing.rbc +2496 -0
- data/lib/active_model/railtie.rbc +69 -0
- data/lib/active_model/serialization.rbc +763 -0
- data/lib/active_model/serializers/json.rbc +802 -0
- data/lib/active_model/serializers/xml.rbc +3540 -0
- data/lib/active_model/translation.rbc +988 -0
- data/lib/active_model/validations.rbc +2398 -0
- data/lib/active_model/validations/acceptance.rbc +955 -0
- data/lib/active_model/validations/callbacks.rbc +1441 -0
- data/lib/active_model/validations/confirmation.rbc +757 -0
- data/lib/active_model/validations/exclusion.rbc +739 -0
- data/lib/active_model/validations/format.rbc +972 -0
- data/lib/active_model/validations/inclusion.rbc +997 -0
- data/lib/active_model/validations/length.rbc +1814 -0
- data/lib/active_model/validations/numericality.rbc +2163 -0
- data/lib/active_model/validations/presence.rbc +537 -0
- data/lib/active_model/validations/validates.rbc +1128 -0
- data/lib/active_model/validations/with.rbc +1058 -0
- data/lib/active_model/validator.rbc +1507 -0
- data/lib/active_model/version.rb +2 -2
- data/lib/active_model/version.rbc +295 -0
- metadata +50 -13
data/CHANGELOG
CHANGED
@@ -0,0 +1,781 @@
|
|
1
|
+
!RBIX
|
2
|
+
12079494195756429234
|
3
|
+
x
|
4
|
+
M
|
5
|
+
1
|
6
|
+
n
|
7
|
+
n
|
8
|
+
x
|
9
|
+
10
|
10
|
+
__script__
|
11
|
+
i
|
12
|
+
146
|
13
|
+
45
|
14
|
+
0
|
15
|
+
1
|
16
|
+
7
|
17
|
+
2
|
18
|
+
64
|
19
|
+
65
|
20
|
+
49
|
21
|
+
3
|
22
|
+
0
|
23
|
+
49
|
24
|
+
4
|
25
|
+
2
|
26
|
+
19
|
27
|
+
0
|
28
|
+
15
|
29
|
+
45
|
30
|
+
0
|
31
|
+
5
|
32
|
+
20
|
33
|
+
0
|
34
|
+
49
|
35
|
+
6
|
36
|
+
1
|
37
|
+
13
|
38
|
+
9
|
39
|
+
47
|
40
|
+
15
|
41
|
+
99
|
42
|
+
43
|
43
|
+
7
|
44
|
+
7
|
45
|
+
8
|
46
|
+
49
|
47
|
+
9
|
48
|
+
1
|
49
|
+
20
|
50
|
+
0
|
51
|
+
49
|
52
|
+
10
|
53
|
+
1
|
54
|
+
10
|
55
|
+
46
|
56
|
+
2
|
57
|
+
8
|
58
|
+
47
|
59
|
+
3
|
60
|
+
9
|
61
|
+
64
|
62
|
+
99
|
63
|
+
43
|
64
|
+
7
|
65
|
+
7
|
66
|
+
8
|
67
|
+
49
|
68
|
+
9
|
69
|
+
1
|
70
|
+
20
|
71
|
+
0
|
72
|
+
49
|
73
|
+
11
|
74
|
+
1
|
75
|
+
8
|
76
|
+
65
|
77
|
+
1
|
78
|
+
15
|
79
|
+
5
|
80
|
+
7
|
81
|
+
12
|
82
|
+
64
|
83
|
+
47
|
84
|
+
49
|
85
|
+
13
|
86
|
+
1
|
87
|
+
15
|
88
|
+
5
|
89
|
+
7
|
90
|
+
14
|
91
|
+
64
|
92
|
+
47
|
93
|
+
49
|
94
|
+
13
|
95
|
+
1
|
96
|
+
15
|
97
|
+
99
|
98
|
+
7
|
99
|
+
15
|
100
|
+
65
|
101
|
+
49
|
102
|
+
16
|
103
|
+
2
|
104
|
+
13
|
105
|
+
99
|
106
|
+
12
|
107
|
+
7
|
108
|
+
17
|
109
|
+
12
|
110
|
+
7
|
111
|
+
18
|
112
|
+
12
|
113
|
+
65
|
114
|
+
12
|
115
|
+
49
|
116
|
+
19
|
117
|
+
4
|
118
|
+
15
|
119
|
+
49
|
120
|
+
17
|
121
|
+
0
|
122
|
+
15
|
123
|
+
5
|
124
|
+
7
|
125
|
+
20
|
126
|
+
64
|
127
|
+
47
|
128
|
+
49
|
129
|
+
13
|
130
|
+
1
|
131
|
+
15
|
132
|
+
45
|
133
|
+
21
|
134
|
+
22
|
135
|
+
49
|
136
|
+
23
|
137
|
+
0
|
138
|
+
45
|
139
|
+
0
|
140
|
+
24
|
141
|
+
65
|
142
|
+
49
|
143
|
+
3
|
144
|
+
0
|
145
|
+
49
|
146
|
+
25
|
147
|
+
1
|
148
|
+
7
|
149
|
+
26
|
150
|
+
64
|
151
|
+
81
|
152
|
+
27
|
153
|
+
49
|
154
|
+
28
|
155
|
+
1
|
156
|
+
15
|
157
|
+
2
|
158
|
+
11
|
159
|
+
I
|
160
|
+
7
|
161
|
+
I
|
162
|
+
1
|
163
|
+
I
|
164
|
+
0
|
165
|
+
I
|
166
|
+
0
|
167
|
+
n
|
168
|
+
p
|
169
|
+
29
|
170
|
+
x
|
171
|
+
4
|
172
|
+
File
|
173
|
+
n
|
174
|
+
s
|
175
|
+
26
|
176
|
+
../../../activesupport/lib
|
177
|
+
x
|
178
|
+
11
|
179
|
+
active_path
|
180
|
+
x
|
181
|
+
11
|
182
|
+
expand_path
|
183
|
+
n
|
184
|
+
x
|
185
|
+
10
|
186
|
+
directory?
|
187
|
+
x
|
188
|
+
7
|
189
|
+
Globals
|
190
|
+
x
|
191
|
+
2
|
192
|
+
$:
|
193
|
+
x
|
194
|
+
2
|
195
|
+
[]
|
196
|
+
x
|
197
|
+
8
|
198
|
+
include?
|
199
|
+
x
|
200
|
+
7
|
201
|
+
unshift
|
202
|
+
s
|
203
|
+
14
|
204
|
+
active_support
|
205
|
+
x
|
206
|
+
7
|
207
|
+
require
|
208
|
+
s
|
209
|
+
20
|
210
|
+
active_model/version
|
211
|
+
x
|
212
|
+
11
|
213
|
+
ActiveModel
|
214
|
+
x
|
215
|
+
11
|
216
|
+
open_module
|
217
|
+
x
|
218
|
+
15
|
219
|
+
__module_init__
|
220
|
+
M
|
221
|
+
1
|
222
|
+
n
|
223
|
+
n
|
224
|
+
x
|
225
|
+
11
|
226
|
+
ActiveModel
|
227
|
+
i
|
228
|
+
203
|
229
|
+
5
|
230
|
+
66
|
231
|
+
5
|
232
|
+
45
|
233
|
+
0
|
234
|
+
1
|
235
|
+
43
|
236
|
+
2
|
237
|
+
47
|
238
|
+
49
|
239
|
+
3
|
240
|
+
1
|
241
|
+
15
|
242
|
+
5
|
243
|
+
7
|
244
|
+
4
|
245
|
+
47
|
246
|
+
49
|
247
|
+
5
|
248
|
+
1
|
249
|
+
15
|
250
|
+
5
|
251
|
+
7
|
252
|
+
6
|
253
|
+
7
|
254
|
+
7
|
255
|
+
64
|
256
|
+
47
|
257
|
+
49
|
258
|
+
5
|
259
|
+
2
|
260
|
+
15
|
261
|
+
5
|
262
|
+
7
|
263
|
+
8
|
264
|
+
47
|
265
|
+
49
|
266
|
+
5
|
267
|
+
1
|
268
|
+
15
|
269
|
+
5
|
270
|
+
7
|
271
|
+
9
|
272
|
+
47
|
273
|
+
49
|
274
|
+
5
|
275
|
+
1
|
276
|
+
15
|
277
|
+
5
|
278
|
+
7
|
279
|
+
10
|
280
|
+
47
|
281
|
+
49
|
282
|
+
5
|
283
|
+
1
|
284
|
+
15
|
285
|
+
5
|
286
|
+
7
|
287
|
+
11
|
288
|
+
47
|
289
|
+
49
|
290
|
+
5
|
291
|
+
1
|
292
|
+
15
|
293
|
+
5
|
294
|
+
7
|
295
|
+
12
|
296
|
+
7
|
297
|
+
7
|
298
|
+
64
|
299
|
+
47
|
300
|
+
49
|
301
|
+
5
|
302
|
+
2
|
303
|
+
15
|
304
|
+
5
|
305
|
+
7
|
306
|
+
13
|
307
|
+
47
|
308
|
+
49
|
309
|
+
5
|
310
|
+
1
|
311
|
+
15
|
312
|
+
5
|
313
|
+
7
|
314
|
+
14
|
315
|
+
47
|
316
|
+
49
|
317
|
+
5
|
318
|
+
1
|
319
|
+
15
|
320
|
+
5
|
321
|
+
7
|
322
|
+
15
|
323
|
+
47
|
324
|
+
49
|
325
|
+
5
|
326
|
+
1
|
327
|
+
15
|
328
|
+
5
|
329
|
+
7
|
330
|
+
16
|
331
|
+
7
|
332
|
+
17
|
333
|
+
64
|
334
|
+
47
|
335
|
+
49
|
336
|
+
5
|
337
|
+
2
|
338
|
+
15
|
339
|
+
5
|
340
|
+
7
|
341
|
+
18
|
342
|
+
47
|
343
|
+
49
|
344
|
+
5
|
345
|
+
1
|
346
|
+
15
|
347
|
+
5
|
348
|
+
7
|
349
|
+
19
|
350
|
+
7
|
351
|
+
20
|
352
|
+
64
|
353
|
+
47
|
354
|
+
49
|
355
|
+
5
|
356
|
+
2
|
357
|
+
15
|
358
|
+
5
|
359
|
+
7
|
360
|
+
21
|
361
|
+
47
|
362
|
+
49
|
363
|
+
5
|
364
|
+
1
|
365
|
+
15
|
366
|
+
5
|
367
|
+
7
|
368
|
+
22
|
369
|
+
47
|
370
|
+
49
|
371
|
+
5
|
372
|
+
1
|
373
|
+
15
|
374
|
+
5
|
375
|
+
7
|
376
|
+
23
|
377
|
+
47
|
378
|
+
49
|
379
|
+
5
|
380
|
+
1
|
381
|
+
15
|
382
|
+
5
|
383
|
+
7
|
384
|
+
24
|
385
|
+
47
|
386
|
+
49
|
387
|
+
5
|
388
|
+
1
|
389
|
+
15
|
390
|
+
5
|
391
|
+
7
|
392
|
+
25
|
393
|
+
47
|
394
|
+
49
|
395
|
+
5
|
396
|
+
1
|
397
|
+
15
|
398
|
+
5
|
399
|
+
7
|
400
|
+
26
|
401
|
+
47
|
402
|
+
49
|
403
|
+
5
|
404
|
+
1
|
405
|
+
15
|
406
|
+
99
|
407
|
+
7
|
408
|
+
27
|
409
|
+
65
|
410
|
+
49
|
411
|
+
28
|
412
|
+
2
|
413
|
+
13
|
414
|
+
99
|
415
|
+
12
|
416
|
+
7
|
417
|
+
29
|
418
|
+
12
|
419
|
+
7
|
420
|
+
30
|
421
|
+
12
|
422
|
+
65
|
423
|
+
12
|
424
|
+
49
|
425
|
+
31
|
426
|
+
4
|
427
|
+
15
|
428
|
+
49
|
429
|
+
29
|
430
|
+
0
|
431
|
+
11
|
432
|
+
I
|
433
|
+
6
|
434
|
+
I
|
435
|
+
0
|
436
|
+
I
|
437
|
+
0
|
438
|
+
I
|
439
|
+
0
|
440
|
+
n
|
441
|
+
p
|
442
|
+
32
|
443
|
+
x
|
444
|
+
13
|
445
|
+
ActiveSupport
|
446
|
+
n
|
447
|
+
x
|
448
|
+
8
|
449
|
+
Autoload
|
450
|
+
x
|
451
|
+
6
|
452
|
+
extend
|
453
|
+
x
|
454
|
+
16
|
455
|
+
AttributeMethods
|
456
|
+
x
|
457
|
+
8
|
458
|
+
autoload
|
459
|
+
x
|
460
|
+
14
|
461
|
+
BlockValidator
|
462
|
+
s
|
463
|
+
22
|
464
|
+
active_model/validator
|
465
|
+
x
|
466
|
+
9
|
467
|
+
Callbacks
|
468
|
+
x
|
469
|
+
10
|
470
|
+
Conversion
|
471
|
+
x
|
472
|
+
22
|
473
|
+
DeprecatedErrorMethods
|
474
|
+
x
|
475
|
+
5
|
476
|
+
Dirty
|
477
|
+
x
|
478
|
+
13
|
479
|
+
EachValidator
|
480
|
+
x
|
481
|
+
6
|
482
|
+
Errors
|
483
|
+
x
|
484
|
+
4
|
485
|
+
Lint
|
486
|
+
x
|
487
|
+
22
|
488
|
+
MassAssignmentSecurity
|
489
|
+
x
|
490
|
+
4
|
491
|
+
Name
|
492
|
+
s
|
493
|
+
19
|
494
|
+
active_model/naming
|
495
|
+
x
|
496
|
+
6
|
497
|
+
Naming
|
498
|
+
x
|
499
|
+
8
|
500
|
+
Observer
|
501
|
+
s
|
502
|
+
22
|
503
|
+
active_model/observing
|
504
|
+
x
|
505
|
+
9
|
506
|
+
Observing
|
507
|
+
x
|
508
|
+
13
|
509
|
+
Serialization
|
510
|
+
x
|
511
|
+
8
|
512
|
+
TestCase
|
513
|
+
x
|
514
|
+
11
|
515
|
+
Translation
|
516
|
+
x
|
517
|
+
11
|
518
|
+
Validations
|
519
|
+
x
|
520
|
+
9
|
521
|
+
Validator
|
522
|
+
x
|
523
|
+
11
|
524
|
+
Serializers
|
525
|
+
x
|
526
|
+
11
|
527
|
+
open_module
|
528
|
+
x
|
529
|
+
15
|
530
|
+
__module_init__
|
531
|
+
M
|
532
|
+
1
|
533
|
+
n
|
534
|
+
n
|
535
|
+
x
|
536
|
+
11
|
537
|
+
Serializers
|
538
|
+
i
|
539
|
+
29
|
540
|
+
5
|
541
|
+
66
|
542
|
+
5
|
543
|
+
45
|
544
|
+
0
|
545
|
+
1
|
546
|
+
43
|
547
|
+
2
|
548
|
+
47
|
549
|
+
49
|
550
|
+
3
|
551
|
+
1
|
552
|
+
15
|
553
|
+
5
|
554
|
+
7
|
555
|
+
4
|
556
|
+
47
|
557
|
+
49
|
558
|
+
5
|
559
|
+
1
|
560
|
+
15
|
561
|
+
5
|
562
|
+
7
|
563
|
+
6
|
564
|
+
47
|
565
|
+
49
|
566
|
+
5
|
567
|
+
1
|
568
|
+
11
|
569
|
+
I
|
570
|
+
2
|
571
|
+
I
|
572
|
+
0
|
573
|
+
I
|
574
|
+
0
|
575
|
+
I
|
576
|
+
0
|
577
|
+
n
|
578
|
+
p
|
579
|
+
7
|
580
|
+
x
|
581
|
+
13
|
582
|
+
ActiveSupport
|
583
|
+
n
|
584
|
+
x
|
585
|
+
8
|
586
|
+
Autoload
|
587
|
+
x
|
588
|
+
6
|
589
|
+
extend
|
590
|
+
x
|
591
|
+
4
|
592
|
+
JSON
|
593
|
+
x
|
594
|
+
8
|
595
|
+
autoload
|
596
|
+
x
|
597
|
+
3
|
598
|
+
Xml
|
599
|
+
p
|
600
|
+
7
|
601
|
+
I
|
602
|
+
2
|
603
|
+
I
|
604
|
+
35
|
605
|
+
I
|
606
|
+
d
|
607
|
+
I
|
608
|
+
37
|
609
|
+
I
|
610
|
+
15
|
611
|
+
I
|
612
|
+
38
|
613
|
+
I
|
614
|
+
1d
|
615
|
+
x
|
616
|
+
68
|
617
|
+
/Users/santiago/WyeWorks/Projs/rails/activemodel/lib/active_model.rb
|
618
|
+
p
|
619
|
+
0
|
620
|
+
x
|
621
|
+
13
|
622
|
+
attach_method
|
623
|
+
p
|
624
|
+
43
|
625
|
+
I
|
626
|
+
2
|
627
|
+
I
|
628
|
+
1e
|
629
|
+
I
|
630
|
+
d
|
631
|
+
I
|
632
|
+
20
|
633
|
+
I
|
634
|
+
15
|
635
|
+
I
|
636
|
+
21
|
637
|
+
I
|
638
|
+
20
|
639
|
+
I
|
640
|
+
22
|
641
|
+
I
|
642
|
+
28
|
643
|
+
I
|
644
|
+
23
|
645
|
+
I
|
646
|
+
30
|
647
|
+
I
|
648
|
+
24
|
649
|
+
I
|
650
|
+
38
|
651
|
+
I
|
652
|
+
25
|
653
|
+
I
|
654
|
+
40
|
655
|
+
I
|
656
|
+
26
|
657
|
+
I
|
658
|
+
4b
|
659
|
+
I
|
660
|
+
27
|
661
|
+
I
|
662
|
+
53
|
663
|
+
I
|
664
|
+
28
|
665
|
+
I
|
666
|
+
5b
|
667
|
+
I
|
668
|
+
29
|
669
|
+
I
|
670
|
+
63
|
671
|
+
I
|
672
|
+
2a
|
673
|
+
I
|
674
|
+
6e
|
675
|
+
I
|
676
|
+
2b
|
677
|
+
I
|
678
|
+
76
|
679
|
+
I
|
680
|
+
2c
|
681
|
+
I
|
682
|
+
81
|
683
|
+
I
|
684
|
+
2d
|
685
|
+
I
|
686
|
+
89
|
687
|
+
I
|
688
|
+
2e
|
689
|
+
I
|
690
|
+
91
|
691
|
+
I
|
692
|
+
2f
|
693
|
+
I
|
694
|
+
99
|
695
|
+
I
|
696
|
+
30
|
697
|
+
I
|
698
|
+
a1
|
699
|
+
I
|
700
|
+
31
|
701
|
+
I
|
702
|
+
a9
|
703
|
+
I
|
704
|
+
32
|
705
|
+
I
|
706
|
+
b1
|
707
|
+
I
|
708
|
+
34
|
709
|
+
I
|
710
|
+
cb
|
711
|
+
x
|
712
|
+
68
|
713
|
+
/Users/santiago/WyeWorks/Projs/rails/activemodel/lib/active_model.rb
|
714
|
+
p
|
715
|
+
0
|
716
|
+
x
|
717
|
+
13
|
718
|
+
attach_method
|
719
|
+
s
|
720
|
+
19
|
721
|
+
active_support/i18n
|
722
|
+
x
|
723
|
+
4
|
724
|
+
I18n
|
725
|
+
n
|
726
|
+
x
|
727
|
+
9
|
728
|
+
load_path
|
729
|
+
n
|
730
|
+
x
|
731
|
+
7
|
732
|
+
dirname
|
733
|
+
s
|
734
|
+
27
|
735
|
+
/active_model/locale/en.yml
|
736
|
+
x
|
737
|
+
1
|
738
|
+
+
|
739
|
+
x
|
740
|
+
2
|
741
|
+
<<
|
742
|
+
p
|
743
|
+
15
|
744
|
+
I
|
745
|
+
0
|
746
|
+
I
|
747
|
+
18
|
748
|
+
I
|
749
|
+
10
|
750
|
+
I
|
751
|
+
19
|
752
|
+
I
|
753
|
+
42
|
754
|
+
I
|
755
|
+
1a
|
756
|
+
I
|
757
|
+
4b
|
758
|
+
I
|
759
|
+
1b
|
760
|
+
I
|
761
|
+
54
|
762
|
+
I
|
763
|
+
1d
|
764
|
+
I
|
765
|
+
6e
|
766
|
+
I
|
767
|
+
3c
|
768
|
+
I
|
769
|
+
77
|
770
|
+
I
|
771
|
+
3d
|
772
|
+
I
|
773
|
+
92
|
774
|
+
x
|
775
|
+
68
|
776
|
+
/Users/santiago/WyeWorks/Projs/rails/activemodel/lib/active_model.rb
|
777
|
+
p
|
778
|
+
1
|
779
|
+
x
|
780
|
+
18
|
781
|
+
activesupport_path
|