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.
Files changed (34) hide show
  1. data/CHANGELOG +5 -0
  2. data/lib/active_model.rbc +781 -0
  3. data/lib/active_model/attribute_methods.rbc +4425 -0
  4. data/lib/active_model/callbacks.rbc +1164 -0
  5. data/lib/active_model/conversion.rbc +416 -0
  6. data/lib/active_model/deprecated_error_methods.rbc +899 -0
  7. data/lib/active_model/dirty.rbc +1538 -0
  8. data/lib/active_model/errors.rbc +3944 -0
  9. data/lib/active_model/mass_assignment_security.rbc +1407 -0
  10. data/lib/active_model/mass_assignment_security/permission_set.rbc +956 -0
  11. data/lib/active_model/mass_assignment_security/sanitizer.rbc +663 -0
  12. data/lib/active_model/naming.rbc +1547 -0
  13. data/lib/active_model/observing.rbc +2496 -0
  14. data/lib/active_model/railtie.rbc +69 -0
  15. data/lib/active_model/serialization.rbc +763 -0
  16. data/lib/active_model/serializers/json.rbc +802 -0
  17. data/lib/active_model/serializers/xml.rbc +3540 -0
  18. data/lib/active_model/translation.rbc +988 -0
  19. data/lib/active_model/validations.rbc +2398 -0
  20. data/lib/active_model/validations/acceptance.rbc +955 -0
  21. data/lib/active_model/validations/callbacks.rbc +1441 -0
  22. data/lib/active_model/validations/confirmation.rbc +757 -0
  23. data/lib/active_model/validations/exclusion.rbc +739 -0
  24. data/lib/active_model/validations/format.rbc +972 -0
  25. data/lib/active_model/validations/inclusion.rbc +997 -0
  26. data/lib/active_model/validations/length.rbc +1814 -0
  27. data/lib/active_model/validations/numericality.rbc +2163 -0
  28. data/lib/active_model/validations/presence.rbc +537 -0
  29. data/lib/active_model/validations/validates.rbc +1128 -0
  30. data/lib/active_model/validations/with.rbc +1058 -0
  31. data/lib/active_model/validator.rbc +1507 -0
  32. data/lib/active_model/version.rb +2 -2
  33. data/lib/active_model/version.rbc +295 -0
  34. metadata +50 -13
@@ -0,0 +1,997 @@
1
+ !RBIX
2
+ 12079494195756429234
3
+ x
4
+ M
5
+ 1
6
+ n
7
+ n
8
+ x
9
+ 10
10
+ __script__
11
+ i
12
+ 28
13
+ 99
14
+ 7
15
+ 0
16
+ 65
17
+ 49
18
+ 1
19
+ 2
20
+ 13
21
+ 99
22
+ 12
23
+ 7
24
+ 2
25
+ 12
26
+ 7
27
+ 3
28
+ 12
29
+ 65
30
+ 12
31
+ 49
32
+ 4
33
+ 4
34
+ 15
35
+ 49
36
+ 2
37
+ 0
38
+ 15
39
+ 2
40
+ 11
41
+ I
42
+ 6
43
+ I
44
+ 0
45
+ I
46
+ 0
47
+ I
48
+ 0
49
+ n
50
+ p
51
+ 5
52
+ x
53
+ 11
54
+ ActiveModel
55
+ x
56
+ 11
57
+ open_module
58
+ x
59
+ 15
60
+ __module_init__
61
+ M
62
+ 1
63
+ n
64
+ n
65
+ x
66
+ 11
67
+ ActiveModel
68
+ i
69
+ 28
70
+ 5
71
+ 66
72
+ 99
73
+ 7
74
+ 0
75
+ 65
76
+ 49
77
+ 1
78
+ 2
79
+ 13
80
+ 99
81
+ 12
82
+ 7
83
+ 2
84
+ 12
85
+ 7
86
+ 3
87
+ 12
88
+ 65
89
+ 12
90
+ 49
91
+ 4
92
+ 4
93
+ 15
94
+ 49
95
+ 2
96
+ 0
97
+ 11
98
+ I
99
+ 6
100
+ I
101
+ 0
102
+ I
103
+ 0
104
+ I
105
+ 0
106
+ n
107
+ p
108
+ 5
109
+ x
110
+ 11
111
+ Validations
112
+ x
113
+ 11
114
+ open_module
115
+ x
116
+ 15
117
+ __module_init__
118
+ M
119
+ 1
120
+ n
121
+ n
122
+ x
123
+ 11
124
+ Validations
125
+ i
126
+ 57
127
+ 5
128
+ 66
129
+ 99
130
+ 7
131
+ 0
132
+ 45
133
+ 1
134
+ 2
135
+ 65
136
+ 49
137
+ 3
138
+ 3
139
+ 13
140
+ 99
141
+ 12
142
+ 7
143
+ 4
144
+ 12
145
+ 7
146
+ 5
147
+ 12
148
+ 65
149
+ 12
150
+ 49
151
+ 6
152
+ 4
153
+ 15
154
+ 49
155
+ 4
156
+ 0
157
+ 15
158
+ 99
159
+ 7
160
+ 7
161
+ 65
162
+ 49
163
+ 8
164
+ 2
165
+ 13
166
+ 99
167
+ 12
168
+ 7
169
+ 9
170
+ 12
171
+ 7
172
+ 10
173
+ 12
174
+ 65
175
+ 12
176
+ 49
177
+ 6
178
+ 4
179
+ 15
180
+ 49
181
+ 9
182
+ 0
183
+ 11
184
+ I
185
+ 6
186
+ I
187
+ 0
188
+ I
189
+ 0
190
+ I
191
+ 0
192
+ n
193
+ p
194
+ 11
195
+ x
196
+ 18
197
+ InclusionValidator
198
+ x
199
+ 13
200
+ EachValidator
201
+ n
202
+ x
203
+ 10
204
+ open_class
205
+ x
206
+ 14
207
+ __class_init__
208
+ M
209
+ 1
210
+ n
211
+ n
212
+ x
213
+ 18
214
+ InclusionValidator
215
+ i
216
+ 60
217
+ 5
218
+ 66
219
+ 99
220
+ 7
221
+ 0
222
+ 7
223
+ 1
224
+ 65
225
+ 67
226
+ 49
227
+ 2
228
+ 0
229
+ 49
230
+ 3
231
+ 4
232
+ 15
233
+ 44
234
+ 43
235
+ 4
236
+ 79
237
+ 80
238
+ 49
239
+ 5
240
+ 2
241
+ 7
242
+ 6
243
+ 49
244
+ 7
245
+ 1
246
+ 9
247
+ 46
248
+ 99
249
+ 7
250
+ 8
251
+ 7
252
+ 9
253
+ 65
254
+ 67
255
+ 49
256
+ 2
257
+ 0
258
+ 49
259
+ 3
260
+ 4
261
+ 8
262
+ 59
263
+ 99
264
+ 7
265
+ 8
266
+ 7
267
+ 10
268
+ 65
269
+ 67
270
+ 49
271
+ 2
272
+ 0
273
+ 49
274
+ 3
275
+ 4
276
+ 11
277
+ I
278
+ 5
279
+ I
280
+ 0
281
+ I
282
+ 0
283
+ I
284
+ 0
285
+ n
286
+ p
287
+ 11
288
+ x
289
+ 15
290
+ check_validity!
291
+ M
292
+ 1
293
+ n
294
+ n
295
+ x
296
+ 15
297
+ check_validity!
298
+ i
299
+ 36
300
+ 5
301
+ 48
302
+ 0
303
+ 7
304
+ 1
305
+ 49
306
+ 2
307
+ 1
308
+ 7
309
+ 3
310
+ 49
311
+ 4
312
+ 1
313
+ 9
314
+ 18
315
+ 1
316
+ 8
317
+ 35
318
+ 5
319
+ 45
320
+ 5
321
+ 6
322
+ 7
323
+ 7
324
+ 64
325
+ 7
326
+ 8
327
+ 64
328
+ 49
329
+ 9
330
+ 1
331
+ 47
332
+ 49
333
+ 10
334
+ 2
335
+ 11
336
+ I
337
+ 4
338
+ I
339
+ 0
340
+ I
341
+ 0
342
+ I
343
+ 0
344
+ n
345
+ p
346
+ 11
347
+ x
348
+ 7
349
+ options
350
+ x
351
+ 2
352
+ in
353
+ x
354
+ 2
355
+ []
356
+ x
357
+ 8
358
+ include?
359
+ x
360
+ 11
361
+ respond_to?
362
+ x
363
+ 13
364
+ ArgumentError
365
+ n
366
+ s
367
+ 71
368
+ An object with the method include? is required must be supplied as the
369
+ s
370
+ 36
371
+ :in option of the configuration hash
372
+ x
373
+ 2
374
+ <<
375
+ x
376
+ 5
377
+ raise
378
+ p
379
+ 11
380
+ I
381
+ -1
382
+ I
383
+ 6
384
+ I
385
+ 0
386
+ I
387
+ 8
388
+ I
389
+ 12
390
+ I
391
+ 7
392
+ I
393
+ 19
394
+ I
395
+ 8
396
+ I
397
+ 1c
398
+ I
399
+ 7
400
+ I
401
+ 24
402
+ x
403
+ 90
404
+ /Users/santiago/WyeWorks/Projs/rails/activemodel/lib/active_model/validations/inclusion.rb
405
+ p
406
+ 0
407
+ x
408
+ 17
409
+ method_visibility
410
+ x
411
+ 15
412
+ add_defn_method
413
+ x
414
+ 5
415
+ Range
416
+ x
417
+ 3
418
+ new
419
+ x
420
+ 6
421
+ cover?
422
+ x
423
+ 11
424
+ respond_to?
425
+ x
426
+ 13
427
+ validate_each
428
+ M
429
+ 1
430
+ n
431
+ n
432
+ x
433
+ 13
434
+ validate_each
435
+ i
436
+ 94
437
+ 5
438
+ 48
439
+ 0
440
+ 7
441
+ 1
442
+ 49
443
+ 2
444
+ 1
445
+ 45
446
+ 3
447
+ 4
448
+ 49
449
+ 5
450
+ 1
451
+ 9
452
+ 31
453
+ 5
454
+ 48
455
+ 0
456
+ 7
457
+ 1
458
+ 49
459
+ 2
460
+ 1
461
+ 20
462
+ 2
463
+ 49
464
+ 6
465
+ 1
466
+ 8
467
+ 44
468
+ 5
469
+ 48
470
+ 0
471
+ 7
472
+ 1
473
+ 49
474
+ 2
475
+ 1
476
+ 20
477
+ 2
478
+ 49
479
+ 7
480
+ 1
481
+ 19
482
+ 3
483
+ 15
484
+ 20
485
+ 3
486
+ 9
487
+ 54
488
+ 1
489
+ 8
490
+ 93
491
+ 20
492
+ 0
493
+ 49
494
+ 8
495
+ 0
496
+ 20
497
+ 1
498
+ 7
499
+ 9
500
+ 5
501
+ 48
502
+ 0
503
+ 7
504
+ 1
505
+ 49
506
+ 10
507
+ 1
508
+ 44
509
+ 43
510
+ 11
511
+ 79
512
+ 49
513
+ 12
514
+ 1
515
+ 13
516
+ 7
517
+ 13
518
+ 20
519
+ 2
520
+ 49
521
+ 14
522
+ 2
523
+ 15
524
+ 49
525
+ 15
526
+ 1
527
+ 49
528
+ 16
529
+ 3
530
+ 11
531
+ I
532
+ c
533
+ I
534
+ 4
535
+ I
536
+ 3
537
+ I
538
+ 3
539
+ n
540
+ p
541
+ 17
542
+ x
543
+ 7
544
+ options
545
+ x
546
+ 2
547
+ in
548
+ x
549
+ 2
550
+ []
551
+ x
552
+ 5
553
+ Range
554
+ n
555
+ x
556
+ 5
557
+ is_a?
558
+ x
559
+ 6
560
+ cover?
561
+ x
562
+ 8
563
+ include?
564
+ x
565
+ 6
566
+ errors
567
+ x
568
+ 9
569
+ inclusion
570
+ x
571
+ 6
572
+ except
573
+ x
574
+ 4
575
+ Hash
576
+ x
577
+ 16
578
+ new_from_literal
579
+ x
580
+ 5
581
+ value
582
+ x
583
+ 3
584
+ []=
585
+ x
586
+ 6
587
+ merge!
588
+ x
589
+ 3
590
+ add
591
+ p
592
+ 15
593
+ I
594
+ -1
595
+ I
596
+ f
597
+ I
598
+ 0
599
+ I
600
+ 10
601
+ I
602
+ 10
603
+ I
604
+ 11
605
+ I
606
+ 1f
607
+ I
608
+ 13
609
+ I
610
+ 2c
611
+ I
612
+ 10
613
+ I
614
+ 2f
615
+ I
616
+ 16
617
+ I
618
+ 36
619
+ I
620
+ 17
621
+ I
622
+ 5e
623
+ x
624
+ 90
625
+ /Users/santiago/WyeWorks/Projs/rails/activemodel/lib/active_model/validations/inclusion.rb
626
+ p
627
+ 4
628
+ x
629
+ 6
630
+ record
631
+ x
632
+ 9
633
+ attribute
634
+ x
635
+ 5
636
+ value
637
+ x
638
+ 8
639
+ included
640
+ M
641
+ 1
642
+ n
643
+ n
644
+ x
645
+ 13
646
+ validate_each
647
+ i
648
+ 58
649
+ 5
650
+ 48
651
+ 0
652
+ 7
653
+ 1
654
+ 49
655
+ 2
656
+ 1
657
+ 20
658
+ 2
659
+ 49
660
+ 3
661
+ 1
662
+ 9
663
+ 18
664
+ 1
665
+ 8
666
+ 57
667
+ 20
668
+ 0
669
+ 49
670
+ 4
671
+ 0
672
+ 20
673
+ 1
674
+ 7
675
+ 5
676
+ 5
677
+ 48
678
+ 0
679
+ 7
680
+ 1
681
+ 49
682
+ 6
683
+ 1
684
+ 44
685
+ 43
686
+ 7
687
+ 79
688
+ 49
689
+ 8
690
+ 1
691
+ 13
692
+ 7
693
+ 9
694
+ 20
695
+ 2
696
+ 49
697
+ 10
698
+ 2
699
+ 15
700
+ 49
701
+ 11
702
+ 1
703
+ 49
704
+ 12
705
+ 3
706
+ 11
707
+ I
708
+ b
709
+ I
710
+ 3
711
+ I
712
+ 3
713
+ I
714
+ 3
715
+ n
716
+ p
717
+ 13
718
+ x
719
+ 7
720
+ options
721
+ x
722
+ 2
723
+ in
724
+ x
725
+ 2
726
+ []
727
+ x
728
+ 8
729
+ include?
730
+ x
731
+ 6
732
+ errors
733
+ x
734
+ 9
735
+ inclusion
736
+ x
737
+ 6
738
+ except
739
+ x
740
+ 4
741
+ Hash
742
+ x
743
+ 16
744
+ new_from_literal
745
+ x
746
+ 5
747
+ value
748
+ x
749
+ 3
750
+ []=
751
+ x
752
+ 6
753
+ merge!
754
+ x
755
+ 3
756
+ add
757
+ p
758
+ 7
759
+ I
760
+ -1
761
+ I
762
+ 1b
763
+ I
764
+ 0
765
+ I
766
+ 1c
767
+ I
768
+ 12
769
+ I
770
+ 1d
771
+ I
772
+ 3a
773
+ x
774
+ 90
775
+ /Users/santiago/WyeWorks/Projs/rails/activemodel/lib/active_model/validations/inclusion.rb
776
+ p
777
+ 3
778
+ x
779
+ 6
780
+ record
781
+ x
782
+ 9
783
+ attribute
784
+ x
785
+ 5
786
+ value
787
+ p
788
+ 9
789
+ I
790
+ 2
791
+ I
792
+ 6
793
+ I
794
+ 10
795
+ I
796
+ e
797
+ I
798
+ 1f
799
+ I
800
+ f
801
+ I
802
+ 2e
803
+ I
804
+ 1b
805
+ I
806
+ 3c
807
+ x
808
+ 90
809
+ /Users/santiago/WyeWorks/Projs/rails/activemodel/lib/active_model/validations/inclusion.rb
810
+ p
811
+ 0
812
+ x
813
+ 13
814
+ attach_method
815
+ x
816
+ 13
817
+ HelperMethods
818
+ x
819
+ 11
820
+ open_module
821
+ x
822
+ 15
823
+ __module_init__
824
+ M
825
+ 1
826
+ n
827
+ n
828
+ x
829
+ 13
830
+ HelperMethods
831
+ i
832
+ 16
833
+ 5
834
+ 66
835
+ 99
836
+ 7
837
+ 0
838
+ 7
839
+ 1
840
+ 65
841
+ 67
842
+ 49
843
+ 2
844
+ 0
845
+ 49
846
+ 3
847
+ 4
848
+ 11
849
+ I
850
+ 5
851
+ I
852
+ 0
853
+ I
854
+ 0
855
+ I
856
+ 0
857
+ n
858
+ p
859
+ 4
860
+ x
861
+ 22
862
+ validates_inclusion_of
863
+ M
864
+ 1
865
+ n
866
+ n
867
+ x
868
+ 22
869
+ validates_inclusion_of
870
+ i
871
+ 16
872
+ 5
873
+ 45
874
+ 0
875
+ 1
876
+ 5
877
+ 20
878
+ 0
879
+ 47
880
+ 49
881
+ 2
882
+ 1
883
+ 47
884
+ 49
885
+ 3
886
+ 2
887
+ 11
888
+ I
889
+ 5
890
+ I
891
+ 1
892
+ I
893
+ 0
894
+ I
895
+ 0
896
+ I
897
+ 0
898
+ p
899
+ 4
900
+ x
901
+ 18
902
+ InclusionValidator
903
+ n
904
+ x
905
+ 17
906
+ _merge_attributes
907
+ x
908
+ 14
909
+ validates_with
910
+ p
911
+ 5
912
+ I
913
+ -1
914
+ I
915
+ 37
916
+ I
917
+ 0
918
+ I
919
+ 38
920
+ I
921
+ 10
922
+ x
923
+ 90
924
+ /Users/santiago/WyeWorks/Projs/rails/activemodel/lib/active_model/validations/inclusion.rb
925
+ p
926
+ 1
927
+ x
928
+ 10
929
+ attr_names
930
+ x
931
+ 17
932
+ method_visibility
933
+ x
934
+ 15
935
+ add_defn_method
936
+ p
937
+ 3
938
+ I
939
+ 2
940
+ I
941
+ 37
942
+ I
943
+ 10
944
+ x
945
+ 90
946
+ /Users/santiago/WyeWorks/Projs/rails/activemodel/lib/active_model/validations/inclusion.rb
947
+ p
948
+ 0
949
+ p
950
+ 5
951
+ I
952
+ 2
953
+ I
954
+ 5
955
+ I
956
+ 1f
957
+ I
958
+ 23
959
+ I
960
+ 39
961
+ x
962
+ 90
963
+ /Users/santiago/WyeWorks/Projs/rails/activemodel/lib/active_model/validations/inclusion.rb
964
+ p
965
+ 0
966
+ x
967
+ 13
968
+ attach_method
969
+ p
970
+ 3
971
+ I
972
+ 2
973
+ I
974
+ 4
975
+ I
976
+ 1c
977
+ x
978
+ 90
979
+ /Users/santiago/WyeWorks/Projs/rails/activemodel/lib/active_model/validations/inclusion.rb
980
+ p
981
+ 0
982
+ x
983
+ 13
984
+ attach_method
985
+ p
986
+ 3
987
+ I
988
+ 0
989
+ I
990
+ 1
991
+ I
992
+ 1c
993
+ x
994
+ 90
995
+ /Users/santiago/WyeWorks/Projs/rails/activemodel/lib/active_model/validations/inclusion.rb
996
+ p
997
+ 0