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,1164 @@
1
+ !RBIX
2
+ 12079494195756429234
3
+ x
4
+ M
5
+ 1
6
+ n
7
+ n
8
+ x
9
+ 10
10
+ __script__
11
+ i
12
+ 46
13
+ 5
14
+ 7
15
+ 0
16
+ 64
17
+ 47
18
+ 49
19
+ 1
20
+ 1
21
+ 15
22
+ 5
23
+ 7
24
+ 2
25
+ 64
26
+ 47
27
+ 49
28
+ 1
29
+ 1
30
+ 15
31
+ 99
32
+ 7
33
+ 3
34
+ 65
35
+ 49
36
+ 4
37
+ 2
38
+ 13
39
+ 99
40
+ 12
41
+ 7
42
+ 5
43
+ 12
44
+ 7
45
+ 6
46
+ 12
47
+ 65
48
+ 12
49
+ 49
50
+ 7
51
+ 4
52
+ 15
53
+ 49
54
+ 5
55
+ 0
56
+ 15
57
+ 2
58
+ 11
59
+ I
60
+ 6
61
+ I
62
+ 0
63
+ I
64
+ 0
65
+ I
66
+ 0
67
+ n
68
+ p
69
+ 8
70
+ s
71
+ 34
72
+ active_support/core_ext/array/wrap
73
+ x
74
+ 7
75
+ require
76
+ s
77
+ 24
78
+ active_support/callbacks
79
+ x
80
+ 11
81
+ ActiveModel
82
+ x
83
+ 11
84
+ open_module
85
+ x
86
+ 15
87
+ __module_init__
88
+ M
89
+ 1
90
+ n
91
+ n
92
+ x
93
+ 11
94
+ ActiveModel
95
+ i
96
+ 28
97
+ 5
98
+ 66
99
+ 99
100
+ 7
101
+ 0
102
+ 65
103
+ 49
104
+ 1
105
+ 2
106
+ 13
107
+ 99
108
+ 12
109
+ 7
110
+ 2
111
+ 12
112
+ 7
113
+ 3
114
+ 12
115
+ 65
116
+ 12
117
+ 49
118
+ 4
119
+ 4
120
+ 15
121
+ 49
122
+ 2
123
+ 0
124
+ 11
125
+ I
126
+ 6
127
+ I
128
+ 0
129
+ I
130
+ 0
131
+ I
132
+ 0
133
+ n
134
+ p
135
+ 5
136
+ x
137
+ 9
138
+ Callbacks
139
+ x
140
+ 11
141
+ open_module
142
+ x
143
+ 15
144
+ __module_init__
145
+ M
146
+ 1
147
+ n
148
+ n
149
+ x
150
+ 9
151
+ Callbacks
152
+ i
153
+ 69
154
+ 5
155
+ 66
156
+ 99
157
+ 7
158
+ 0
159
+ 7
160
+ 1
161
+ 65
162
+ 5
163
+ 49
164
+ 2
165
+ 4
166
+ 15
167
+ 99
168
+ 7
169
+ 3
170
+ 7
171
+ 4
172
+ 65
173
+ 67
174
+ 49
175
+ 5
176
+ 0
177
+ 49
178
+ 6
179
+ 4
180
+ 15
181
+ 99
182
+ 7
183
+ 7
184
+ 7
185
+ 8
186
+ 65
187
+ 67
188
+ 49
189
+ 5
190
+ 0
191
+ 49
192
+ 6
193
+ 4
194
+ 15
195
+ 99
196
+ 7
197
+ 9
198
+ 7
199
+ 10
200
+ 65
201
+ 67
202
+ 49
203
+ 5
204
+ 0
205
+ 49
206
+ 6
207
+ 4
208
+ 15
209
+ 99
210
+ 7
211
+ 11
212
+ 7
213
+ 12
214
+ 65
215
+ 67
216
+ 49
217
+ 5
218
+ 0
219
+ 49
220
+ 6
221
+ 4
222
+ 11
223
+ I
224
+ 5
225
+ I
226
+ 0
227
+ I
228
+ 0
229
+ I
230
+ 0
231
+ n
232
+ p
233
+ 13
234
+ x
235
+ 8
236
+ extended
237
+ M
238
+ 1
239
+ n
240
+ n
241
+ x
242
+ 8
243
+ extended
244
+ i
245
+ 8
246
+ 20
247
+ 0
248
+ 56
249
+ 0
250
+ 50
251
+ 1
252
+ 0
253
+ 11
254
+ I
255
+ 3
256
+ I
257
+ 1
258
+ I
259
+ 1
260
+ I
261
+ 1
262
+ n
263
+ p
264
+ 2
265
+ M
266
+ 1
267
+ p
268
+ 2
269
+ x
270
+ 9
271
+ for_block
272
+ t
273
+ n
274
+ x
275
+ 8
276
+ extended
277
+ i
278
+ 11
279
+ 5
280
+ 45
281
+ 0
282
+ 1
283
+ 43
284
+ 2
285
+ 47
286
+ 49
287
+ 3
288
+ 1
289
+ 11
290
+ I
291
+ 3
292
+ I
293
+ 0
294
+ I
295
+ 0
296
+ I
297
+ 0
298
+ I
299
+ -2
300
+ p
301
+ 4
302
+ x
303
+ 13
304
+ ActiveSupport
305
+ n
306
+ x
307
+ 9
308
+ Callbacks
309
+ x
310
+ 7
311
+ include
312
+ p
313
+ 3
314
+ I
315
+ 0
316
+ I
317
+ 36
318
+ I
319
+ b
320
+ x
321
+ 78
322
+ /Users/santiago/WyeWorks/Projs/rails/activemodel/lib/active_model/callbacks.rb
323
+ p
324
+ 0
325
+ x
326
+ 10
327
+ class_eval
328
+ p
329
+ 5
330
+ I
331
+ -1
332
+ I
333
+ 34
334
+ I
335
+ 0
336
+ I
337
+ 35
338
+ I
339
+ 8
340
+ x
341
+ 78
342
+ /Users/santiago/WyeWorks/Projs/rails/activemodel/lib/active_model/callbacks.rb
343
+ p
344
+ 1
345
+ x
346
+ 4
347
+ base
348
+ x
349
+ 13
350
+ attach_method
351
+ x
352
+ 22
353
+ define_model_callbacks
354
+ M
355
+ 1
356
+ n
357
+ n
358
+ x
359
+ 22
360
+ define_model_callbacks
361
+ i
362
+ 86
363
+ 20
364
+ 0
365
+ 49
366
+ 0
367
+ 0
368
+ 19
369
+ 1
370
+ 15
371
+ 44
372
+ 43
373
+ 1
374
+ 4
375
+ 3
376
+ 49
377
+ 2
378
+ 1
379
+ 13
380
+ 7
381
+ 3
382
+ 7
383
+ 4
384
+ 64
385
+ 49
386
+ 5
387
+ 2
388
+ 15
389
+ 13
390
+ 7
391
+ 6
392
+ 7
393
+ 7
394
+ 7
395
+ 8
396
+ 35
397
+ 2
398
+ 49
399
+ 5
400
+ 2
401
+ 15
402
+ 13
403
+ 7
404
+ 9
405
+ 7
406
+ 10
407
+ 7
408
+ 11
409
+ 7
410
+ 12
411
+ 35
412
+ 3
413
+ 49
414
+ 5
415
+ 2
416
+ 15
417
+ 20
418
+ 1
419
+ 49
420
+ 13
421
+ 1
422
+ 19
423
+ 1
424
+ 15
425
+ 45
426
+ 14
427
+ 15
428
+ 20
429
+ 1
430
+ 7
431
+ 9
432
+ 49
433
+ 16
434
+ 1
435
+ 49
436
+ 17
437
+ 1
438
+ 19
439
+ 2
440
+ 15
441
+ 20
442
+ 0
443
+ 56
444
+ 18
445
+ 50
446
+ 19
447
+ 0
448
+ 11
449
+ I
450
+ 9
451
+ I
452
+ 3
453
+ I
454
+ 0
455
+ I
456
+ 0
457
+ I
458
+ 0
459
+ p
460
+ 20
461
+ x
462
+ 16
463
+ extract_options!
464
+ x
465
+ 4
466
+ Hash
467
+ x
468
+ 16
469
+ new_from_literal
470
+ x
471
+ 10
472
+ terminator
473
+ s
474
+ 15
475
+ result == false
476
+ x
477
+ 3
478
+ []=
479
+ x
480
+ 5
481
+ scope
482
+ x
483
+ 4
484
+ kind
485
+ x
486
+ 4
487
+ name
488
+ x
489
+ 4
490
+ only
491
+ x
492
+ 6
493
+ before
494
+ x
495
+ 6
496
+ around
497
+ x
498
+ 5
499
+ after
500
+ x
501
+ 5
502
+ merge
503
+ x
504
+ 5
505
+ Array
506
+ n
507
+ x
508
+ 6
509
+ delete
510
+ x
511
+ 4
512
+ wrap
513
+ M
514
+ 1
515
+ p
516
+ 2
517
+ x
518
+ 9
519
+ for_block
520
+ t
521
+ n
522
+ x
523
+ 22
524
+ define_model_callbacks
525
+ i
526
+ 24
527
+ 57
528
+ 19
529
+ 0
530
+ 15
531
+ 5
532
+ 20
533
+ 0
534
+ 21
535
+ 1
536
+ 1
537
+ 47
538
+ 49
539
+ 0
540
+ 2
541
+ 15
542
+ 21
543
+ 1
544
+ 2
545
+ 56
546
+ 1
547
+ 50
548
+ 2
549
+ 0
550
+ 11
551
+ I
552
+ 5
553
+ I
554
+ 1
555
+ I
556
+ 1
557
+ I
558
+ 1
559
+ n
560
+ p
561
+ 3
562
+ x
563
+ 16
564
+ define_callbacks
565
+ M
566
+ 1
567
+ p
568
+ 2
569
+ x
570
+ 9
571
+ for_block
572
+ t
573
+ n
574
+ x
575
+ 22
576
+ define_model_callbacks
577
+ i
578
+ 29
579
+ 57
580
+ 19
581
+ 0
582
+ 15
583
+ 5
584
+ 7
585
+ 0
586
+ 20
587
+ 0
588
+ 47
589
+ 101
590
+ 1
591
+ 7
592
+ 2
593
+ 63
594
+ 3
595
+ 47
596
+ 49
597
+ 3
598
+ 0
599
+ 5
600
+ 21
601
+ 1
602
+ 0
603
+ 47
604
+ 49
605
+ 4
606
+ 3
607
+ 11
608
+ I
609
+ 6
610
+ I
611
+ 1
612
+ I
613
+ 1
614
+ I
615
+ 1
616
+ n
617
+ p
618
+ 5
619
+ s
620
+ 8
621
+ _define_
622
+ x
623
+ 4
624
+ to_s
625
+ s
626
+ 15
627
+ _model_callback
628
+ x
629
+ 6
630
+ to_sym
631
+ x
632
+ 4
633
+ send
634
+ p
635
+ 5
636
+ I
637
+ 0
638
+ I
639
+ 68
640
+ I
641
+ 4
642
+ I
643
+ 69
644
+ I
645
+ 1d
646
+ x
647
+ 78
648
+ /Users/santiago/WyeWorks/Projs/rails/activemodel/lib/active_model/callbacks.rb
649
+ p
650
+ 1
651
+ x
652
+ 4
653
+ type
654
+ x
655
+ 4
656
+ each
657
+ p
658
+ 7
659
+ I
660
+ 0
661
+ I
662
+ 65
663
+ I
664
+ 4
665
+ I
666
+ 66
667
+ I
668
+ f
669
+ I
670
+ 68
671
+ I
672
+ 18
673
+ x
674
+ 78
675
+ /Users/santiago/WyeWorks/Projs/rails/activemodel/lib/active_model/callbacks.rb
676
+ p
677
+ 1
678
+ x
679
+ 8
680
+ callback
681
+ x
682
+ 4
683
+ each
684
+ p
685
+ 21
686
+ I
687
+ -1
688
+ I
689
+ 5b
690
+ I
691
+ 0
692
+ I
693
+ 5c
694
+ I
695
+ 8
696
+ I
697
+ 61
698
+ I
699
+ 11
700
+ I
701
+ 5e
702
+ I
703
+ 1b
704
+ I
705
+ 5f
706
+ I
707
+ 28
708
+ I
709
+ 60
710
+ I
711
+ 36
712
+ I
713
+ 61
714
+ I
715
+ 3b
716
+ I
717
+ 5d
718
+ I
719
+ 3e
720
+ I
721
+ 63
722
+ I
723
+ 4e
724
+ I
725
+ 65
726
+ I
727
+ 56
728
+ x
729
+ 78
730
+ /Users/santiago/WyeWorks/Projs/rails/activemodel/lib/active_model/callbacks.rb
731
+ p
732
+ 3
733
+ x
734
+ 9
735
+ callbacks
736
+ x
737
+ 7
738
+ options
739
+ x
740
+ 5
741
+ types
742
+ x
743
+ 17
744
+ method_visibility
745
+ x
746
+ 15
747
+ add_defn_method
748
+ x
749
+ 29
750
+ _define_before_model_callback
751
+ M
752
+ 1
753
+ n
754
+ n
755
+ x
756
+ 29
757
+ _define_before_model_callback
758
+ i
759
+ 33
760
+ 20
761
+ 0
762
+ 7
763
+ 0
764
+ 20
765
+ 1
766
+ 47
767
+ 101
768
+ 1
769
+ 7
770
+ 2
771
+ 20
772
+ 1
773
+ 47
774
+ 101
775
+ 1
776
+ 7
777
+ 3
778
+ 63
779
+ 5
780
+ 65
781
+ 49
782
+ 4
783
+ 0
784
+ 4
785
+ 111
786
+ 79
787
+ 81
788
+ 5
789
+ 49
790
+ 6
791
+ 3
792
+ 11
793
+ I
794
+ 8
795
+ I
796
+ 2
797
+ I
798
+ 2
799
+ I
800
+ 2
801
+ n
802
+ p
803
+ 7
804
+ s
805
+ 24
806
+ def self.before_
807
+ x
808
+ 4
809
+ to_s
810
+ s
811
+ 40
812
+ (*args, &block)
813
+ set_callback(:
814
+ s
815
+ 38
816
+ , :before, *args, &block)
817
+ end
818
+
819
+ x
820
+ 11
821
+ active_path
822
+ x
823
+ 1
824
+ +
825
+ x
826
+ 10
827
+ class_eval
828
+ p
829
+ 11
830
+ I
831
+ -1
832
+ I
833
+ 6e
834
+ I
835
+ 0
836
+ I
837
+ 6f
838
+ I
839
+ 2
840
+ I
841
+ 70
842
+ I
843
+ b
844
+ I
845
+ 71
846
+ I
847
+ 14
848
+ I
849
+ 6f
850
+ I
851
+ 21
852
+ x
853
+ 78
854
+ /Users/santiago/WyeWorks/Projs/rails/activemodel/lib/active_model/callbacks.rb
855
+ p
856
+ 2
857
+ x
858
+ 5
859
+ klass
860
+ x
861
+ 8
862
+ callback
863
+ x
864
+ 29
865
+ _define_around_model_callback
866
+ M
867
+ 1
868
+ n
869
+ n
870
+ x
871
+ 29
872
+ _define_around_model_callback
873
+ i
874
+ 33
875
+ 20
876
+ 0
877
+ 7
878
+ 0
879
+ 20
880
+ 1
881
+ 47
882
+ 101
883
+ 1
884
+ 7
885
+ 2
886
+ 20
887
+ 1
888
+ 47
889
+ 101
890
+ 1
891
+ 7
892
+ 3
893
+ 63
894
+ 5
895
+ 65
896
+ 49
897
+ 4
898
+ 0
899
+ 4
900
+ 119
901
+ 79
902
+ 81
903
+ 5
904
+ 49
905
+ 6
906
+ 3
907
+ 11
908
+ I
909
+ 8
910
+ I
911
+ 2
912
+ I
913
+ 2
914
+ I
915
+ 2
916
+ n
917
+ p
918
+ 7
919
+ s
920
+ 24
921
+ def self.around_
922
+ x
923
+ 4
924
+ to_s
925
+ s
926
+ 40
927
+ (*args, &block)
928
+ set_callback(:
929
+ s
930
+ 38
931
+ , :around, *args, &block)
932
+ end
933
+
934
+ x
935
+ 11
936
+ active_path
937
+ x
938
+ 1
939
+ +
940
+ x
941
+ 10
942
+ class_eval
943
+ p
944
+ 11
945
+ I
946
+ -1
947
+ I
948
+ 76
949
+ I
950
+ 0
951
+ I
952
+ 77
953
+ I
954
+ 2
955
+ I
956
+ 78
957
+ I
958
+ b
959
+ I
960
+ 79
961
+ I
962
+ 14
963
+ I
964
+ 77
965
+ I
966
+ 21
967
+ x
968
+ 78
969
+ /Users/santiago/WyeWorks/Projs/rails/activemodel/lib/active_model/callbacks.rb
970
+ p
971
+ 2
972
+ x
973
+ 5
974
+ klass
975
+ x
976
+ 8
977
+ callback
978
+ x
979
+ 28
980
+ _define_after_model_callback
981
+ M
982
+ 1
983
+ n
984
+ n
985
+ x
986
+ 28
987
+ _define_after_model_callback
988
+ i
989
+ 33
990
+ 20
991
+ 0
992
+ 7
993
+ 0
994
+ 20
995
+ 1
996
+ 47
997
+ 101
998
+ 1
999
+ 7
1000
+ 2
1001
+ 20
1002
+ 1
1003
+ 47
1004
+ 101
1005
+ 1
1006
+ 7
1007
+ 3
1008
+ 63
1009
+ 5
1010
+ 65
1011
+ 49
1012
+ 4
1013
+ 0
1014
+ 4
1015
+ 127
1016
+ 79
1017
+ 81
1018
+ 5
1019
+ 49
1020
+ 6
1021
+ 3
1022
+ 11
1023
+ I
1024
+ 8
1025
+ I
1026
+ 2
1027
+ I
1028
+ 2
1029
+ I
1030
+ 2
1031
+ n
1032
+ p
1033
+ 7
1034
+ s
1035
+ 23
1036
+ def self.after_
1037
+ x
1038
+ 4
1039
+ to_s
1040
+ s
1041
+ 198
1042
+ (*args, &block)
1043
+ options = args.extract_options!
1044
+ options[:prepend] = true
1045
+ options[:if] = Array.wrap(options[:if]) << "!halted && value != false"
1046
+ set_callback(:
1047
+ s
1048
+ 50
1049
+ , :after, *(args << options), &block)
1050
+ end
1051
+
1052
+ x
1053
+ 11
1054
+ active_path
1055
+ x
1056
+ 1
1057
+ +
1058
+ x
1059
+ 10
1060
+ class_eval
1061
+ p
1062
+ 11
1063
+ I
1064
+ -1
1065
+ I
1066
+ 7e
1067
+ I
1068
+ 0
1069
+ I
1070
+ 7f
1071
+ I
1072
+ 2
1073
+ I
1074
+ 80
1075
+ I
1076
+ b
1077
+ I
1078
+ 84
1079
+ I
1080
+ 14
1081
+ I
1082
+ 7f
1083
+ I
1084
+ 21
1085
+ x
1086
+ 78
1087
+ /Users/santiago/WyeWorks/Projs/rails/activemodel/lib/active_model/callbacks.rb
1088
+ p
1089
+ 2
1090
+ x
1091
+ 5
1092
+ klass
1093
+ x
1094
+ 8
1095
+ callback
1096
+ p
1097
+ 11
1098
+ I
1099
+ 2
1100
+ I
1101
+ 34
1102
+ I
1103
+ d
1104
+ I
1105
+ 5b
1106
+ I
1107
+ 1b
1108
+ I
1109
+ 6e
1110
+ I
1111
+ 29
1112
+ I
1113
+ 76
1114
+ I
1115
+ 37
1116
+ I
1117
+ 7e
1118
+ I
1119
+ 45
1120
+ x
1121
+ 78
1122
+ /Users/santiago/WyeWorks/Projs/rails/activemodel/lib/active_model/callbacks.rb
1123
+ p
1124
+ 0
1125
+ x
1126
+ 13
1127
+ attach_method
1128
+ p
1129
+ 3
1130
+ I
1131
+ 2
1132
+ I
1133
+ 33
1134
+ I
1135
+ 1c
1136
+ x
1137
+ 78
1138
+ /Users/santiago/WyeWorks/Projs/rails/activemodel/lib/active_model/callbacks.rb
1139
+ p
1140
+ 0
1141
+ x
1142
+ 13
1143
+ attach_method
1144
+ p
1145
+ 7
1146
+ I
1147
+ 0
1148
+ I
1149
+ 1
1150
+ I
1151
+ 9
1152
+ I
1153
+ 2
1154
+ I
1155
+ 12
1156
+ I
1157
+ 4
1158
+ I
1159
+ 2e
1160
+ x
1161
+ 78
1162
+ /Users/santiago/WyeWorks/Projs/rails/activemodel/lib/active_model/callbacks.rb
1163
+ p
1164
+ 0