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