composite_primary_keys 13.0.6 → 13.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/History.rdoc +913 -907
- data/README.rdoc +181 -181
- data/lib/composite_primary_keys/associations/association.rb +2 -2
- data/lib/composite_primary_keys/associations/association_scope.rb +1 -1
- data/lib/composite_primary_keys/associations/collection_association.rb +31 -31
- data/lib/composite_primary_keys/associations/preloader/association.rb +61 -61
- data/lib/composite_primary_keys/associations/through_association.rb +24 -24
- data/lib/composite_primary_keys/autosave_association.rb +60 -60
- data/lib/composite_primary_keys/composite_arrays.rb +86 -86
- data/lib/composite_primary_keys/composite_predicates.rb +120 -120
- data/lib/composite_primary_keys/persistence.rb +83 -83
- data/lib/composite_primary_keys/relation/calculations.rb +104 -104
- data/lib/composite_primary_keys/relation.rb +2 -2
- data/lib/composite_primary_keys/validations/uniqueness.rb +31 -31
- data/lib/composite_primary_keys/version.rb +8 -8
- data/lib/composite_primary_keys.rb +118 -118
- data/test/abstract_unit.rb +114 -114
- data/test/fixtures/comments.yml +6 -0
- data/test/fixtures/department.rb +16 -16
- data/test/fixtures/room_assignment.rb +13 -13
- data/test/fixtures/user_with_polymorphic_name.rb +9 -0
- data/test/test_associations.rb +372 -372
- data/test/test_composite_arrays.rb +38 -38
- data/test/test_polymorphic.rb +6 -0
- metadata +4 -5
- data/test/test_bug.rb +0 -45
data/History.rdoc
CHANGED
@@ -1,907 +1,913 @@
|
|
1
|
-
== 13.0.
|
2
|
-
|
3
|
-
|
4
|
-
== 13.0.
|
5
|
-
*
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
*
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
*
|
30
|
-
|
31
|
-
==
|
32
|
-
*
|
33
|
-
|
34
|
-
== 12.0.
|
35
|
-
*
|
36
|
-
|
37
|
-
== 12.0.
|
38
|
-
*
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
== 12.0.
|
44
|
-
*
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
== 12.0.
|
50
|
-
* Fix
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
*
|
57
|
-
*
|
58
|
-
*
|
59
|
-
|
60
|
-
|
61
|
-
*
|
62
|
-
|
63
|
-
*
|
64
|
-
*
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
*
|
70
|
-
*
|
71
|
-
*
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
*
|
77
|
-
* Update
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
*
|
87
|
-
* Update travis
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
*
|
93
|
-
* Update
|
94
|
-
*
|
95
|
-
* Fix
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
*
|
100
|
-
*
|
101
|
-
* Fix
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
*
|
108
|
-
|
109
|
-
== 11.0.
|
110
|
-
* Fix
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
* Fix
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
*
|
121
|
-
*
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
* Fix
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
*
|
153
|
-
|
154
|
-
== 10.0.
|
155
|
-
|
156
|
-
*
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
* Require a minimum of activerecord version 5.1.
|
163
|
-
|
164
|
-
== 10.0.
|
165
|
-
|
166
|
-
*
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
*
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
* Fix
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
*
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
*
|
192
|
-
*
|
193
|
-
*
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
*
|
198
|
-
*
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
*
|
204
|
-
*
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
*
|
209
|
-
*
|
210
|
-
*
|
211
|
-
*
|
212
|
-
*
|
213
|
-
*
|
214
|
-
*
|
215
|
-
|
216
|
-
|
217
|
-
*
|
218
|
-
|
219
|
-
|
220
|
-
*
|
221
|
-
|
222
|
-
== 9.0.
|
223
|
-
*
|
224
|
-
|
225
|
-
== 9.0.
|
226
|
-
*
|
227
|
-
|
228
|
-
== 9.0.
|
229
|
-
*
|
230
|
-
|
231
|
-
==
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
Fix
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
*
|
258
|
-
* Fix
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
* Fix
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
*
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
*
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
*
|
280
|
-
*
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
*
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
*
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
*
|
304
|
-
*
|
305
|
-
|
306
|
-
== 7.0.
|
307
|
-
|
308
|
-
*
|
309
|
-
*
|
310
|
-
|
311
|
-
|
312
|
-
== 7.0.
|
313
|
-
|
314
|
-
* ActiveRecord 4.1.
|
315
|
-
*
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
*
|
324
|
-
|
325
|
-
*
|
326
|
-
|
327
|
-
== 7.0.
|
328
|
-
|
329
|
-
*
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
== 7.0.7 (2014-07-29)
|
343
|
-
|
344
|
-
* Add back support for calling find like this (Sammy Larbi):
|
345
|
-
|
346
|
-
Membership.find('1,1')
|
347
|
-
|
348
|
-
== 7.0.
|
349
|
-
|
350
|
-
*
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
*
|
362
|
-
|
363
|
-
== 7.0.
|
364
|
-
|
365
|
-
*
|
366
|
-
*
|
367
|
-
*
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
*
|
373
|
-
*
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
|
398
|
-
== 6.0.
|
399
|
-
|
400
|
-
*
|
401
|
-
|
402
|
-
|
403
|
-
|
404
|
-
|
405
|
-
|
406
|
-
|
407
|
-
|
408
|
-
|
409
|
-
|
410
|
-
*
|
411
|
-
* Fix
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
|
416
|
-
* Fixes
|
417
|
-
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
|
422
|
-
|
423
|
-
|
424
|
-
|
425
|
-
|
426
|
-
|
427
|
-
*
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
==
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
*
|
436
|
-
|
437
|
-
|
438
|
-
|
439
|
-
|
440
|
-
|
441
|
-
|
442
|
-
*
|
443
|
-
|
444
|
-
|
445
|
-
*
|
446
|
-
|
447
|
-
|
448
|
-
|
449
|
-
*
|
450
|
-
* Add
|
451
|
-
* Add
|
452
|
-
*
|
453
|
-
|
454
|
-
|
455
|
-
|
456
|
-
|
457
|
-
*
|
458
|
-
*
|
459
|
-
*
|
460
|
-
|
461
|
-
|
462
|
-
|
463
|
-
*
|
464
|
-
* Update
|
465
|
-
|
466
|
-
|
467
|
-
*
|
468
|
-
*
|
469
|
-
* Fix
|
470
|
-
*
|
471
|
-
|
472
|
-
|
473
|
-
*
|
474
|
-
|
475
|
-
* Fix
|
476
|
-
|
477
|
-
|
478
|
-
|
479
|
-
*
|
480
|
-
|
481
|
-
|
482
|
-
|
483
|
-
|
484
|
-
|
485
|
-
*
|
486
|
-
|
487
|
-
|
488
|
-
*
|
489
|
-
|
490
|
-
|
491
|
-
*
|
492
|
-
|
493
|
-
|
494
|
-
|
495
|
-
|
496
|
-
|
497
|
-
*
|
498
|
-
*
|
499
|
-
|
500
|
-
|
501
|
-
|
502
|
-
|
503
|
-
*
|
504
|
-
|
505
|
-
|
506
|
-
*
|
507
|
-
|
508
|
-
== 5.0.
|
509
|
-
*
|
510
|
-
|
511
|
-
|
512
|
-
*
|
513
|
-
|
514
|
-
|
515
|
-
*
|
516
|
-
|
517
|
-
|
518
|
-
*
|
519
|
-
* Fix
|
520
|
-
|
521
|
-
|
522
|
-
|
523
|
-
== 5.0.
|
524
|
-
* Fix
|
525
|
-
* Fix
|
526
|
-
|
527
|
-
|
528
|
-
|
529
|
-
|
530
|
-
* Fix
|
531
|
-
* Fix
|
532
|
-
*
|
533
|
-
|
534
|
-
|
535
|
-
|
536
|
-
*
|
537
|
-
|
538
|
-
|
539
|
-
*
|
540
|
-
|
541
|
-
|
542
|
-
|
543
|
-
|
544
|
-
|
545
|
-
*
|
546
|
-
|
547
|
-
*
|
548
|
-
|
549
|
-
|
550
|
-
|
551
|
-
|
552
|
-
*
|
553
|
-
|
554
|
-
|
555
|
-
|
556
|
-
|
557
|
-
|
558
|
-
*
|
559
|
-
|
560
|
-
|
561
|
-
|
562
|
-
|
563
|
-
*
|
564
|
-
|
565
|
-
|
566
|
-
* Fix
|
567
|
-
|
568
|
-
== 4.0.0
|
569
|
-
*
|
570
|
-
|
571
|
-
== 4.0.0.
|
572
|
-
*
|
573
|
-
|
574
|
-
|
575
|
-
|
576
|
-
|
577
|
-
|
578
|
-
*
|
579
|
-
|
580
|
-
|
581
|
-
|
582
|
-
|
583
|
-
*
|
584
|
-
|
585
|
-
|
586
|
-
|
587
|
-
|
588
|
-
|
589
|
-
|
590
|
-
|
591
|
-
|
592
|
-
|
593
|
-
|
594
|
-
|
595
|
-
|
596
|
-
|
597
|
-
|
598
|
-
|
599
|
-
|
600
|
-
|
601
|
-
|
602
|
-
|
603
|
-
|
604
|
-
|
605
|
-
|
606
|
-
|
607
|
-
|
608
|
-
*
|
609
|
-
*
|
610
|
-
|
611
|
-
|
612
|
-
|
613
|
-
|
614
|
-
|
615
|
-
*
|
616
|
-
|
617
|
-
|
618
|
-
*
|
619
|
-
|
620
|
-
|
621
|
-
|
622
|
-
*
|
623
|
-
|
624
|
-
*
|
625
|
-
* Fix
|
626
|
-
|
627
|
-
|
628
|
-
|
629
|
-
|
630
|
-
* Fix
|
631
|
-
* Fix
|
632
|
-
|
633
|
-
|
634
|
-
|
635
|
-
|
636
|
-
|
637
|
-
*
|
638
|
-
|
639
|
-
* Fix
|
640
|
-
|
641
|
-
|
642
|
-
|
643
|
-
|
644
|
-
|
645
|
-
|
646
|
-
|
647
|
-
|
648
|
-
|
649
|
-
|
650
|
-
|
651
|
-
|
652
|
-
|
653
|
-
*
|
654
|
-
*
|
655
|
-
|
656
|
-
|
657
|
-
|
658
|
-
|
659
|
-
|
660
|
-
*
|
661
|
-
*
|
662
|
-
*
|
663
|
-
|
664
|
-
|
665
|
-
== 3.0
|
666
|
-
*
|
667
|
-
|
668
|
-
|
669
|
-
|
670
|
-
|
671
|
-
|
672
|
-
|
673
|
-
|
674
|
-
|
675
|
-
|
676
|
-
|
677
|
-
|
678
|
-
|
679
|
-
|
680
|
-
|
681
|
-
|
682
|
-
|
683
|
-
|
684
|
-
|
685
|
-
* Add
|
686
|
-
|
687
|
-
|
688
|
-
|
689
|
-
|
690
|
-
|
691
|
-
*
|
692
|
-
|
693
|
-
|
694
|
-
|
695
|
-
|
696
|
-
== 3.0.
|
697
|
-
* Support
|
698
|
-
*
|
699
|
-
|
700
|
-
|
701
|
-
|
702
|
-
|
703
|
-
|
704
|
-
|
705
|
-
* Fix
|
706
|
-
*
|
707
|
-
|
708
|
-
|
709
|
-
|
710
|
-
|
711
|
-
|
712
|
-
*
|
713
|
-
|
714
|
-
|
715
|
-
|
716
|
-
|
717
|
-
|
718
|
-
|
719
|
-
|
720
|
-
|
721
|
-
+
|
722
|
-
|
723
|
-
|
724
|
-
|
725
|
-
|
726
|
-
|
727
|
-
+
|
728
|
-
|
729
|
-
|
730
|
-
|
731
|
-
|
732
|
-
|
733
|
-
+
|
734
|
-
|
735
|
-
|
736
|
-
|
737
|
-
|
738
|
-
|
739
|
-
|
740
|
-
|
741
|
-
|
742
|
-
|
743
|
-
|
744
|
-
|
745
|
-
|
746
|
-
|
747
|
-
|
748
|
-
|
749
|
-
|
750
|
-
|
751
|
-
|
752
|
-
|
753
|
-
|
754
|
-
|
755
|
-
|
756
|
-
|
757
|
-
|
758
|
-
|
759
|
-
|
760
|
-
|
761
|
-
|
762
|
-
|
763
|
-
|
764
|
-
|
765
|
-
|
766
|
-
|
767
|
-
|
768
|
-
|
769
|
-
|
770
|
-
|
771
|
-
|
772
|
-
*
|
773
|
-
|
774
|
-
== 1.0.
|
775
|
-
|
776
|
-
* fix
|
777
|
-
|
778
|
-
|
779
|
-
|
780
|
-
|
781
|
-
|
782
|
-
|
783
|
-
|
784
|
-
|
785
|
-
|
786
|
-
|
787
|
-
|
788
|
-
|
789
|
-
|
790
|
-
|
791
|
-
|
792
|
-
|
793
|
-
|
794
|
-
|
795
|
-
|
796
|
-
|
797
|
-
|
798
|
-
|
799
|
-
|
800
|
-
|
801
|
-
|
802
|
-
|
803
|
-
|
804
|
-
|
805
|
-
|
806
|
-
|
807
|
-
|
808
|
-
|
809
|
-
|
810
|
-
|
811
|
-
|
812
|
-
|
813
|
-
|
814
|
-
|
815
|
-
|
816
|
-
|
817
|
-
|
818
|
-
|
819
|
-
|
820
|
-
|
821
|
-
|
822
|
-
|
823
|
-
|
824
|
-
|
825
|
-
|
826
|
-
|
827
|
-
|
828
|
-
|
829
|
-
|
830
|
-
|
831
|
-
|
832
|
-
|
833
|
-
|
834
|
-
*
|
835
|
-
|
836
|
-
|
837
|
-
|
838
|
-
|
839
|
-
|
840
|
-
|
841
|
-
*
|
842
|
-
|
843
|
-
|
844
|
-
|
845
|
-
|
846
|
-
|
847
|
-
|
848
|
-
*
|
849
|
-
|
850
|
-
|
851
|
-
|
852
|
-
|
853
|
-
*
|
854
|
-
|
855
|
-
*
|
856
|
-
*
|
857
|
-
*
|
858
|
-
|
859
|
-
|
860
|
-
|
861
|
-
*
|
862
|
-
|
863
|
-
|
864
|
-
|
865
|
-
|
866
|
-
|
867
|
-
|
868
|
-
*
|
869
|
-
|
870
|
-
|
871
|
-
|
872
|
-
|
873
|
-
*
|
874
|
-
|
875
|
-
*
|
876
|
-
|
877
|
-
== 0.8.
|
878
|
-
|
879
|
-
* 1
|
880
|
-
*
|
881
|
-
|
882
|
-
|
883
|
-
|
884
|
-
|
885
|
-
|
886
|
-
*
|
887
|
-
|
888
|
-
|
889
|
-
|
890
|
-
*
|
891
|
-
*
|
892
|
-
|
893
|
-
|
894
|
-
*
|
895
|
-
*
|
896
|
-
|
897
|
-
|
898
|
-
|
899
|
-
|
900
|
-
|
901
|
-
*
|
902
|
-
|
903
|
-
|
904
|
-
|
905
|
-
|
906
|
-
|
907
|
-
|
1
|
+
== 13.0.8 (2023-11-24)
|
2
|
+
Fix `polymorphic_name` support (Vladimir Kochnev)
|
3
|
+
|
4
|
+
== 13.0.7 (2023-02-04)
|
5
|
+
* Fix #573 (Charlie Savage)
|
6
|
+
|
7
|
+
== 13.0.6 (2023-02-04)
|
8
|
+
* Fix #577 (Charlie Savage)
|
9
|
+
|
10
|
+
== 13.0.5 (2023-02-04)
|
11
|
+
* Improve query generation for cpk_in_predicate. This reduces the length of
|
12
|
+
queries when loading many keys and enables Postgres to use index scans
|
13
|
+
more frequently. (Andrew Kiellor)
|
14
|
+
|
15
|
+
== 13.0.4 (2022-12-05)
|
16
|
+
* Fix previously_new_record? not being set to true after create
|
17
|
+
|
18
|
+
== 13.0.3 (2022-01-09)
|
19
|
+
* Remove override on ActiveRecord::Base#to_param. That method has moved to Integration
|
20
|
+
so no longer works. #541. (Charlie Savage)
|
21
|
+
* Check if an assocation is polymorhpic. Fixes #558.
|
22
|
+
|
23
|
+
== 13.0.2 (2022-01-09)
|
24
|
+
* Fix scoped associations take #2 (Charlie Savage)
|
25
|
+
|
26
|
+
== 13.0.1 (2021-11-14)
|
27
|
+
* Fix invalid sql generation for some cases of scoped associations (Ryan Mulligan)
|
28
|
+
* Fix unintentional connection to database (Kazuhiro Masuda)
|
29
|
+
* Zip values then keys - fixes #548 (Charlie Savage)
|
30
|
+
|
31
|
+
== 13.0.0 (2021-05-09)
|
32
|
+
* Update to ActiveRecord 6.1 (Javier Julio, Charlie Savage, Sammy Larbi)
|
33
|
+
|
34
|
+
== 12.0.10 (2021-05-09)
|
35
|
+
* Support using the #id method on records with primary keys that also have an :id attribute.
|
36
|
+
|
37
|
+
== 12.0.9 (2021-02-22)
|
38
|
+
* Third time is hopefully the charm on MySQL/MariaDB auto increment fix
|
39
|
+
|
40
|
+
== 12.0.8 (2021-02-16)
|
41
|
+
* Revert to previous MySQL/MariaDB auto increment fix
|
42
|
+
|
43
|
+
== 12.0.7 (2021-02-15)
|
44
|
+
* Switch to GitHub actions (ta1kt0me)
|
45
|
+
* Fix MySQL/MariaDB query cache issue bug introduced in version 12.0.3 - see #539 (Charlie Savage)
|
46
|
+
* Do a better job of supporting composite keys with an auto incrementing field for
|
47
|
+
MySQL and MariaDB (Charlie Savage)
|
48
|
+
|
49
|
+
== 12.0.6 (2021-01-04)
|
50
|
+
* Fix issue when calling in_batches without a block (Charlie Savage)
|
51
|
+
|
52
|
+
== 12.0.5 (2020-12-31)
|
53
|
+
* Finally issue with SQLServer when tables are marked as exclude_output_inserted. See #535. (Charlie Savage)
|
54
|
+
|
55
|
+
== 12.0.4 (2020-12-30)
|
56
|
+
* Fix compatibility with Ruby Ruby 2.6 and below (ta1kt0me)
|
57
|
+
* Finally get SQLServer mass updates and deletes working (Charlie Savage)
|
58
|
+
* Fix MySQL mass updates and deletes that were broken by 12.0.3 (Charlie Savage)
|
59
|
+
|
60
|
+
== 12.0.3 (2020-11-11)
|
61
|
+
* Prevents infinite loops with gems which modify the 'attributes' method (Nicholas Guarino)
|
62
|
+
* Improve delete_all and update_all queries (Charlie Savage)
|
63
|
+
* Improve Oracle support (Charlie Savage)
|
64
|
+
* Improve SQL Server support. Note delete_all and update_all queries still do not work due to
|
65
|
+
quirks in SQL Server syntax (Charlie Savage)
|
66
|
+
* Improve support for polymorphic associations (Charlie Savage)
|
67
|
+
* Update fixtures and tests to include a model that uses an :id column as part of a composite
|
68
|
+
key (Charlie Savage)
|
69
|
+
* Fixed bug where id values were not correctly mapped between primary and foreign keys in associations (Charlie Savage)
|
70
|
+
* Cleanup how the gem is loaded (Charlie Savage)
|
71
|
+
* Remove older, unused or minimally used fixtures (Charlie Savage)
|
72
|
+
|
73
|
+
== 12.0.2 (2020-05-19)
|
74
|
+
* Remove deprecation warning for Ruby 2.7 due to keyword parameters (Alexandru Anca )
|
75
|
+
* Use sqlite for default in tests (Charlie Savage)
|
76
|
+
* Modernize gem tests by using Bundler (Charlie Savage)
|
77
|
+
* Update travis for ruby 2.7 (Charlie Savage)
|
78
|
+
* Port "Fix create record where one or more of the primary keys has a default value" from ar 5.2 branch (Charlie Savage)
|
79
|
+
* Remove extra argument from sql_for_insert for SqlServer (tohae)
|
80
|
+
|
81
|
+
== 12.0.1 (2019-11-25)
|
82
|
+
* Convert attribute names to strings before checking for them in has_attribute? (Daniel de Haas)
|
83
|
+
* Update the comment referring to the overridden Rails code (Daniel de Haas)
|
84
|
+
|
85
|
+
== 12.0.0 (2019-09-03)
|
86
|
+
* Update to ActiveRecord 6.0 (Hiroshi Kajisha, Alexandru Anca, Charlie Savage, Sammy Larbi)
|
87
|
+
* Update travis setup (Olle Jonsson, Charlie Savage)
|
88
|
+
|
89
|
+
==11.3.1 (2020-04-01)¶ ↑
|
90
|
+
* Fix overriding AbstractReflection for activerecord 5.2.4 (Sergey Semyonov)
|
91
|
+
* Fix handling CPK with fields containing comma (Sergey Semyonov)
|
92
|
+
* Fixed incorrect SQL condition for joining by CPK (Sergey Semyonov)
|
93
|
+
* Update travis.yml file (Sergey Semyonov)
|
94
|
+
* Add tests for composite keys with default values (Daniel Wiklund)
|
95
|
+
* Fix create record where one or more of the primary keys has a default value (Daniel Wiklund)
|
96
|
+
|
97
|
+
== 11.2.0 (2019-03-16)
|
98
|
+
* When creating new records, honor composite key autoincrementing fields if possible (Antti Pitkänen)
|
99
|
+
* Update Association#run to more closely match ActiveRecord (Fabian Mersch)
|
100
|
+
* Updates needed due to changes in ActiveRecord (Sammy Larbi)
|
101
|
+
* Fix construct_join_attributes method (Brad Slaughter)
|
102
|
+
* Fix destroy_all on HABTM (Brad Slaughter)
|
103
|
+
|
104
|
+
== 11.1.0 (2018-11-14)
|
105
|
+
* Support ActiveRecord 5.2.1 (S1Artem Tselovalnikov, Caleb Buxton, Charlie Savage)
|
106
|
+
* Fix counter cache (Tomonori Murakami)
|
107
|
+
* Fix error on autosave has_one relations when the :primary_key option is set (Charlie Savage)
|
108
|
+
|
109
|
+
== 11.0.3 (2018-06-25)
|
110
|
+
* Fix overridden attribute readers and writers (Charlie Savage)
|
111
|
+
|
112
|
+
== 11.0.2 (2018-06-24)
|
113
|
+
* Remove no longer needed overrides (Charlie Savage)
|
114
|
+
|
115
|
+
== 11.0.1 (2018-06-20)
|
116
|
+
* Fix in_batches (Urmo Rae)
|
117
|
+
* Fix apply_join_dependency (Charlie Savage)
|
118
|
+
|
119
|
+
== 11.0.0 (2018-06-18)
|
120
|
+
* Update to ActiveRecord 5.2 (Charlie Savage)
|
121
|
+
* Fixes for AR 5.2 persistence changes (Erik Rothoff, Charlie Savage)
|
122
|
+
* Fix system stack error (i2bskn)
|
123
|
+
|
124
|
+
== 11.0.0.rc2 (2018-02-25)
|
125
|
+
|
126
|
+
* Fix mysql deletion failure (Charlie Savage)
|
127
|
+
* Clean test run for postgresql, mysql and sqlite3 (Charlie Savage)
|
128
|
+
|
129
|
+
== 11.0.0.rc1 (2018-02-25)
|
130
|
+
|
131
|
+
* Update to ActiveRecord 5.2.rc1 (Charlie Savage)
|
132
|
+
* Fix uniquness check (Charlie Savage)
|
133
|
+
|
134
|
+
== 11.0.0.beta4 (2018-01-08)
|
135
|
+
|
136
|
+
* Try again on Calculations#execute_simple_calculation for ActiveRecord 5.2.beta2 (Charlie Savage)
|
137
|
+
|
138
|
+
== 11.0.0.beta3 (2018-01-07)
|
139
|
+
|
140
|
+
* Fix typo in Readme.doc (Lopez Lucien)
|
141
|
+
* Fix Calculations#execute_simple_calculation for ActiveRecord 5.2.beta2 (Charlie Savage)
|
142
|
+
|
143
|
+
== 11.0.0.beta2 (2017-12-10)
|
144
|
+
|
145
|
+
* Minor updates for ActiveRecord 5.2.beta2 support (Charlie Savage)
|
146
|
+
|
147
|
+
== 11.0.0.beta1 (2017-12-03)
|
148
|
+
|
149
|
+
* ActiveRecord 5.2.beta2 support (Charlie Savage)
|
150
|
+
|
151
|
+
== 10.0.5 (2018-06-24)
|
152
|
+
* Fix in_batches (Urmo Rae)
|
153
|
+
|
154
|
+
== 10.0.4 (2018-06-17)
|
155
|
+
|
156
|
+
* Lock mysql2 gem to 0.4.x (Le Trung Kien)
|
157
|
+
* Set inversion when using preload (Le Trung Kien)
|
158
|
+
* Fixes for AR 5.1.6 (Tim Morgan)
|
159
|
+
|
160
|
+
== 10.0.3 (2018-02-25)
|
161
|
+
|
162
|
+
* Require a minimum of activerecord version 5.1.5 (Tom Hughes)
|
163
|
+
|
164
|
+
== 10.0.2 (2017-12-02)
|
165
|
+
|
166
|
+
* Fix frozen string mutation for mysql (Sergey Sein)
|
167
|
+
* Fix autosave for belongs_to associations (Fabian Mersch)
|
168
|
+
* Require a minimum of activerecord version 5.1.4 (Charlie Savage)
|
169
|
+
|
170
|
+
== 10.0.1 (2017-10-08)
|
171
|
+
|
172
|
+
* Fixed an error that happened when a table attribute had the same name as the table (Taishi Kasuga)
|
173
|
+
|
174
|
+
== 10.0.0 (2017-10-08)
|
175
|
+
|
176
|
+
* Support ActiveRecord 5.1.x (Pinak Thakkar, Jordan Owens)
|
177
|
+
* Fix Paper Trail compatibility (Sean Linsley)
|
178
|
+
* Fix typo in Readme (Mike Gunderloy)
|
179
|
+
* Improved sql server support (Artyom Nikolaev)
|
180
|
+
|
181
|
+
== 9.0.10 (2018-06-24)
|
182
|
+
|
183
|
+
* Fix AR 5.0.7 (Jordan Owens)
|
184
|
+
|
185
|
+
== 9.0.8 (2017-10-11)
|
186
|
+
|
187
|
+
* Fix Paper Trail compatibility (Sean Linsley)
|
188
|
+
|
189
|
+
== 9.0.7 (2017-05-22)
|
190
|
+
|
191
|
+
* Update sqlite3 to support deletes and updates (Charlie Savage)
|
192
|
+
* Specify version for sql server gem so it works with Rails 5.0 (Charlie Savage)
|
193
|
+
* Use `datetime` datatype to address Invalid default value for updated_at (Yasuo Honda)
|
194
|
+
* Fix ORA-00900 error when it attempts to execute blank statement (pustomytnyk)
|
195
|
+
* Override ActiveRecord::Associations::CollectionAssociation#ids_reader (pustomytnyk)
|
196
|
+
* Only define #primary_keys if #primary_keys=(value) is called (Charlie Savage)
|
197
|
+
* Change `timestamp` to `datetime` for MySQL as ActiveRecord timestamps type does (Oriol Collel)
|
198
|
+
* Fix incorrect case statement to get PK for SQLServer (Oriol Collel)
|
199
|
+
* Fixes random failures in test_preload_of_polymorphic_association (Boris Peterbarg)
|
200
|
+
|
201
|
+
== 9.0.6 (2017-01-08)
|
202
|
+
|
203
|
+
* Uncomment tests (Sammy Larbi)
|
204
|
+
* Update readme (Charlie Savage)
|
205
|
+
|
206
|
+
== 9.0.5 (2017-01-02)
|
207
|
+
|
208
|
+
* Don't nest PK twice when looking up id, fixes #319 (Kerey Roper)
|
209
|
+
* Simplify database setup for tests (Charlie Savage)
|
210
|
+
* Revamp gem management (Charlie Savage)
|
211
|
+
* Add support for Relation#update_all when using joins (Charlie Savage)
|
212
|
+
* Add erb support to test database.yml files (Charlie Savage)
|
213
|
+
* Sqlserver fixes for ordering (Charlie Savage)
|
214
|
+
* Sqlserver refresh (Charlie Savage)
|
215
|
+
* Oracle refresh (Charlie Savage)
|
216
|
+
* Fix delete_all for MySql (Charlie Savage)
|
217
|
+
* Added test cases for preloading associations with and without conditions (Martin Körner)
|
218
|
+
* Revamp single association handling to correctly setup SQL binds (Charlie Savage)
|
219
|
+
* Remove references to ActiveModel - #352 (Charlie Savage)
|
220
|
+
* Fixes for #232, #359, #367 and #371 (Charlie Savage)
|
221
|
+
|
222
|
+
== 9.0.4 (2016-08-17)
|
223
|
+
* Do not set associations to readonly. See https://github.com/rails/rails/issues/24093 (Charlie Savage)
|
224
|
+
|
225
|
+
== 9.0.2 (2016-08-10)
|
226
|
+
* Fix delete_all when used with a join (Charlie Savage)
|
227
|
+
|
228
|
+
== 9.0.1 (2016-07-27)
|
229
|
+
* Create OR predicates in a nicely balanced tree fixing #320 (Nathan Samson)
|
230
|
+
|
231
|
+
== 9.0.0 (2016-07-06)
|
232
|
+
* Support connection_specification_name in rails5.0.0.rc1 (pocari)
|
233
|
+
|
234
|
+
== 9.0.0.beta1 (2016-04-16)
|
235
|
+
* Rails 5 beta support (Sammy Larbi)
|
236
|
+
|
237
|
+
== 8.1.7 (2019-05-04)
|
238
|
+
|
239
|
+
Fix key not being an array in subquery on has_many :through (Eric Proulx)
|
240
|
+
Convert batches to arrays before continuing loop (Jeremy Mickelson)
|
241
|
+
|
242
|
+
== 8.1.6 (2017-05-20)
|
243
|
+
|
244
|
+
Query cache with bind params (ttw)
|
245
|
+
Fix TestIds#test_set_ids_string. Sqlite's serial and integer are a bit different (Boris Peterbarg)
|
246
|
+
Associations with inverse fix (Boris Peterbarg)
|
247
|
+
Fix save_has_one_association and add a test for it (Boris Peterbarg)
|
248
|
+
Fix save_belongs_to_association override (Boris Peterbarg)
|
249
|
+
Extend approach from #344 to fix autosave for has_one associations as well (Cameron Finucane)
|
250
|
+
|
251
|
+
== 8.1.5 (2017-01-01)
|
252
|
+
|
253
|
+
* Don't nest PK twice when looking up id, fixes #319 (Kerey Roper)
|
254
|
+
|
255
|
+
== 8.1.4 (2016-07-27)
|
256
|
+
|
257
|
+
* Create OR predicates in a nicely balanced tree fixing #320 (Nathan Samson)
|
258
|
+
* Fix find in batches (apurvis)
|
259
|
+
|
260
|
+
== 8.1.3 (2016-04-16)
|
261
|
+
|
262
|
+
* Make CPK work for Arel::Attributes::Attribute (Rick Xing)
|
263
|
+
* Change autosave_association.rb so that association autosave can work (Rick Xing)
|
264
|
+
* Fix exception when saving "other_ids=" with a has_many :through association where the source
|
265
|
+
association is polymorphic (Tye Shavik)
|
266
|
+
* Fix Arel::Nodes::In where left side is not a column (Tye Shavik)
|
267
|
+
|
268
|
+
== 8.1.2 (2015-12-13)
|
269
|
+
|
270
|
+
* Fix failing tests
|
271
|
+
|
272
|
+
== 8.1.1 (2015-08-04)
|
273
|
+
|
274
|
+
* Updates to make Travis CI green (Laust Rud Jacobsen)
|
275
|
+
* Travis CI support (Laust Rud Jacobsen)
|
276
|
+
* Remove overriden Base#==(comparison_object) which had a different behavior than stock AR method
|
277
|
+
for non-peristed objects (Charlie Savage)
|
278
|
+
* Update support for Uniquenes validations (Avi Leavitt)
|
279
|
+
* Remove call to verify_active_connections! which was removed from AR 4.1 (Steve Pletcher)
|
280
|
+
* Aligned the establish connection paramater handling to be similar to latest version of rails (Harish Shetty)
|
281
|
+
|
282
|
+
|
283
|
+
== 8.1.0 (2014-03-23)
|
284
|
+
|
285
|
+
* ActiveRecord 4.2.1 support (Charlie Savage)
|
286
|
+
* Change parsing of composite ids to fix #290 (Charlie Savage)
|
287
|
+
* Add sqlserver setting for test suite (Joachim Herb)
|
288
|
+
* Fix sqlserver adapater, isse #224 (Joachim Herb)
|
289
|
+
* Update readme file to include version 8.* information (David Silva)
|
290
|
+
|
291
|
+
== 8.0.1 (2014-01-24)
|
292
|
+
|
293
|
+
* Support optimistic lock and lock_version added to existing fixtures (Kirika)
|
294
|
+
|
295
|
+
== 8.0.0 (2014-01-10)
|
296
|
+
|
297
|
+
* ActiveRecord 4.2.* support (Sammy Larbi)
|
298
|
+
|
299
|
+
== 7.0.14 (2015-08-04)
|
300
|
+
|
301
|
+
* Remove overriden Base#==(comparison_object) which had a different behavior than stock AR method
|
302
|
+
for non-peristed objects (Charlie Savage)
|
303
|
+
* Update support for Uniquenes validations (Avi Leavitt)
|
304
|
+
* Remove call to verify_active_connections! which was removed from AR 4.1 (Steve Pletcher)
|
305
|
+
|
306
|
+
== 7.0.13 (2015-01-24)
|
307
|
+
|
308
|
+
* Support optimistic lock and lock_version added to existing fixtures (Kirika)
|
309
|
+
* README change to convey finding available versions (Aaron Bartell)
|
310
|
+
* Fixes indentation in product_tariffs (Zaldabus)
|
311
|
+
|
312
|
+
== 7.0.12 (2014-11-09)
|
313
|
+
|
314
|
+
* ActiveRecord 4.1.7 support (Tom Hughes)
|
315
|
+
* Extract CPK methods to its own module and extending instead of opening the singleton class
|
316
|
+
which fixes Marshal#dump (Nicolás Hock Isaza)
|
317
|
+
|
318
|
+
== 7.0.11 (2014-10-10)
|
319
|
+
|
320
|
+
* ActiveRecord 4.1.6 support (Tom Hughes, Charlie Savage)
|
321
|
+
* Verify MariaDB support and update docs (Isi Robayna)
|
322
|
+
* Postgresql binary column support (Piotr Gębala)
|
323
|
+
* Fix deleting of records from collection association (akeuk and Charlie Savage)
|
324
|
+
* Fix invalid include (shiro16)
|
325
|
+
* Improve tests (Yann Marquet)
|
326
|
+
|
327
|
+
== 7.0.10 (2014-08-07)
|
328
|
+
|
329
|
+
* Update attribute dirty methods to allow attribute *_was
|
330
|
+
fields to be calculated correctly for enum fields (Zachary Salzbank)
|
331
|
+
* Update read/write methods to match latest version of ActiveRecord (Charlie Savage)
|
332
|
+
|
333
|
+
== 7.0.9 (2014-08-03)
|
334
|
+
|
335
|
+
* Second attemp at fixing instantiation of has_many records via :includes that use composite keys - this
|
336
|
+
time take into account no target records (Charlie Savage)
|
337
|
+
|
338
|
+
== 7.0.8 (2014-08-03)
|
339
|
+
|
340
|
+
* Fix instantiation of has_many records via :includes that use composite keys (Charlie Savage)
|
341
|
+
|
342
|
+
== 7.0.7 (2014-07-29)
|
343
|
+
|
344
|
+
* Add back support for calling find like this (Sammy Larbi):
|
345
|
+
|
346
|
+
Membership.find('1,1')
|
347
|
+
|
348
|
+
== 7.0.7 (2014-07-29)
|
349
|
+
|
350
|
+
* Add back support for calling find like this (Sammy Larbi):
|
351
|
+
|
352
|
+
Membership.find('1,1')
|
353
|
+
|
354
|
+
== 7.0.6 (2014-07-22)
|
355
|
+
|
356
|
+
* Change the way we override ActiveRecord::Persistence to call sequence of included modules such
|
357
|
+
as callbacks (Charlie Savage)
|
358
|
+
|
359
|
+
== 7.0.5 (2014-07-21)
|
360
|
+
|
361
|
+
* Remove overriden Postgresql adapter code (Charlie Savage)
|
362
|
+
|
363
|
+
== 7.0.4 (2014-07-09)
|
364
|
+
|
365
|
+
* Fix overriding of Relation#where_values_hash (Pavel)
|
366
|
+
* Add travis CI support (Pavel)
|
367
|
+
* Run AR's original relation_for_destroy when primary key is not composite (Pavel)
|
368
|
+
|
369
|
+
== 7.0.3 (2014-07-04)
|
370
|
+
|
371
|
+
* Fixes for Rails 4.1.2+ compatibility (Tom Hughes)
|
372
|
+
* Nested attribute fix (Sammy Larb)
|
373
|
+
* Test fixes (Sammy Larb)
|
374
|
+
* Fixes instantiating join records (Charlie Savage)
|
375
|
+
|
376
|
+
== 7.0.2 (2014-06-01)
|
377
|
+
|
378
|
+
* Fix id_was when one of the column names is called id (Adrian Hooper)
|
379
|
+
* Fix queries that use ActiveRecord objects in the where clause (Adrian Hooper)
|
380
|
+
|
381
|
+
== 7.0.1 (2014-05-27)
|
382
|
+
|
383
|
+
* Fix setting of timestamps automatically by Rails (Charlie Savage)
|
384
|
+
|
385
|
+
== 7.0.0 (2014-05-26)
|
386
|
+
|
387
|
+
* Active Record 4.1 support! (Charlie Savage, Tom Hughes, Simon South)
|
388
|
+
|
389
|
+
Note there is one big api change. Previously, CPK supported both of these calls:
|
390
|
+
|
391
|
+
Membership.find(1,1)
|
392
|
+
Membership.find([1,1])
|
393
|
+
|
394
|
+
The first one no longer works. It was removed because it made the internal code simpler
|
395
|
+
and makes the intention of the code clearer (especially when finding multiple records).
|
396
|
+
If this change causes too much pain then please submit a ticket on Github.
|
397
|
+
|
398
|
+
== 6.0.08 (2015-01-24)
|
399
|
+
|
400
|
+
* Fix habtm association #delete_records (Uros Jurglic)
|
401
|
+
* Support optimistic locking (Toshio Maki)
|
402
|
+
* Remove singleton classes on CPK relations (Nicolás Hock Isaza)
|
403
|
+
|
404
|
+
== 6.0.7 (2014-10-06)
|
405
|
+
|
406
|
+
* Support Rails 4.0.6 (Tom Hughes)
|
407
|
+
|
408
|
+
== 6.0.6 (2014-05-26)
|
409
|
+
|
410
|
+
* Don't refer to deprecated set_primary_keys in README (Henare Degan)
|
411
|
+
* Fix gemspec dependency (Charlie Savage)
|
412
|
+
|
413
|
+
== 6.0.5 (2014-05-20)
|
414
|
+
|
415
|
+
* Removed debugging output (Dan Draper)
|
416
|
+
* Fixes to ensure that has_one associations work correctly (Dan Draper)
|
417
|
+
* Fix postgres db migration failure since no result is returned in some cases (seashell-qd)
|
418
|
+
* Fix exception raised in method "id=" (seashell.qd@hotmail.com)
|
419
|
+
|
420
|
+
== 6.0.3 (2014-04-28)
|
421
|
+
|
422
|
+
* Fixes setting of primary key when CPK is not used for a given model (see #191)
|
423
|
+
|
424
|
+
== 6.0.2 (2014-04-28)
|
425
|
+
|
426
|
+
* Fixes relating to ActiveRecord 4.0.x compatibility (Dan Draper)
|
427
|
+
* Ensure that primary key is set on instance when creating new records (Dan Draper)
|
428
|
+
|
429
|
+
== 6.0.1 (2013-11-29)
|
430
|
+
|
431
|
+
* Handle records == :all in HasManyAssociation#delete_records. Without this calling
|
432
|
+
delete or clear on a has_many assocation can result in an exception (Tom Hughes)
|
433
|
+
* Don't include cpk key as an attributes - fixes json serialization - #168 (Charlie Savage)
|
434
|
+
* Fix tests running on ruby 1.9.3 (Charlie Savage)
|
435
|
+
* Update nested_attributes to work with activerecord 4.0.x (Nick DeLuca)
|
436
|
+
|
437
|
+
== 6.0.0 (2013-08-04)
|
438
|
+
* ActiveRecord 4.0 support (Sammy Larbi)
|
439
|
+
|
440
|
+
== 5.0.13 2013-04-27
|
441
|
+
* Batch query improvements (Jordan Byron)
|
442
|
+
* Support nested attributes (aiasfina and Charlie Savage)
|
443
|
+
|
444
|
+
== 5.0.12 2013-01-21
|
445
|
+
* Fix HasManyAssociation foreign_key_present? method to work with non CPK assocations (Charlie Savage)
|
446
|
+
|
447
|
+
== 5.0.11 2013-01-19
|
448
|
+
* Patch HasManyAssociation foreign_key_present? method to work with array of keys (tbeauvais)
|
449
|
+
* Patch reverse_sql_order method to break apart CPKs (tbeauvais)
|
450
|
+
* Add test and fix for nested_attributes update (Dinshaw Gobhai)
|
451
|
+
* Add test and fix for to_sym exception (Dinshaw Gobhai)
|
452
|
+
* Add missing timestamp columns for mysql test_touch.rb (Dinshaw Gobhai)
|
453
|
+
|
454
|
+
== 5.0.10 2012-11-21
|
455
|
+
* ActiveRecord 3.2.9 compatability (Tom Hughes, Chris Heald, Jack Tang)
|
456
|
+
* Add support for find_in_batches (Charlie Savage)
|
457
|
+
* Add support for touch method (Macario Ortega)
|
458
|
+
* Remove symbolized representation of primary keys to be consistent with ActiveRecord (Tiago Cardoso)
|
459
|
+
* Update destroy method to use hash of primary keys over an array. This allows the proper SQL
|
460
|
+
(using IS NULL) to be generated when one of the primary key attributes is nil (Scott Hunter).
|
461
|
+
|
462
|
+
== 5.0.9 2012-09-29
|
463
|
+
* Enable tests for MS SQL Servder (Enderson Maia)
|
464
|
+
* Update ActiveRecord::Base#initialize_dup override in line with ActiveRecord::Base 3.2.5+ (Lucas Maxwell)
|
465
|
+
* Require postgresql_adapter.rb also when using activerecord-postgis-adapter (Torsti Schulz)
|
466
|
+
* Make cpk_in_predicate build a simple IN when possible (Tom Hughes)
|
467
|
+
* Fixed problem loading jdbcpostgresql adapter (Troy Caldwell)
|
468
|
+
* Add support for counter cache (Charlie Savage)
|
469
|
+
* Fix recreating postgresql database (Charlie Savage)
|
470
|
+
* Update dependency to ActiveRecord 3.2.8 or higher (Charlie Savage)
|
471
|
+
|
472
|
+
== 5.0.8 2012-07-01
|
473
|
+
* Enabled tests for MS SQL Server (Enderson Maia)
|
474
|
+
* Update establish_connection to work with Rails 3.2.6 (Ivan Schneider)
|
475
|
+
* Fix typos in rake tasks names in README_tests.rdoc (Ivan Schneider)
|
476
|
+
* Fix problem with deleting non-CPK in Rails 3.2.5 (Sammy Larbi)
|
477
|
+
* Fixes relationship deletion for HABTM in Rails when it passes :all flag instead of
|
478
|
+
an array of IDs. Also adds new tests and test fixtures (Sammy Larbi)
|
479
|
+
* Change mysql db creation to execute one statement each time, since in some setups
|
480
|
+
it will not run multiple statements (Sammy Larbi)
|
481
|
+
* Fix multiple assignments to same column due to duplicate keys in @changed_attributes.
|
482
|
+
Includes test fixes (Jan Vlnas)
|
483
|
+
|
484
|
+
== 5.0.7 2012-06-03
|
485
|
+
* Fixed bug where validates_uniqueness failed for 3 or more primary keys. (Charlie Savage)
|
486
|
+
|
487
|
+
== 5.0.6 2012-05-20
|
488
|
+
* Fixed bug where setting a belongs_to association to nil would raise an error (Tyler Rick)
|
489
|
+
* Remove special case code for 1 column selects and just choose to use Rails version of the
|
490
|
+
method unless we need ours to deal with an Array (Sammy Larbi)
|
491
|
+
* Change count tests to actually check for distinct, fix resulting error it
|
492
|
+
demonstrated in the code (Sammy Larbi)
|
493
|
+
* Specify mysql2 driver by default (Charlie Savage)
|
494
|
+
* Update sqlite tests to run on Windows (Charlie Savage)
|
495
|
+
|
496
|
+
== 5.0.5 2012-05-05
|
497
|
+
* Count without slower subquery in cases where that is possible (Sammy Larbi)
|
498
|
+
* When you call association.build for a has_many association that uses a
|
499
|
+
composite foreign key, the newly built child record should have the values
|
500
|
+
in its belongs_to foreign_key populated from its owner's values (Tyler Rick).
|
501
|
+
* Removed test_has_many_with_primary_key method that wasn't being used because
|
502
|
+
another method by the same name was defined below it (Tyler Rick).
|
503
|
+
* Fixed a bug that was causing object.changes to raise TypeError (Tyler Rick)
|
504
|
+
* Fix error when running rake mysql:rebuild_databases (Tyler Rick)
|
505
|
+
* to_param should join with comma instead of minus sign (Tsutomu Kuroda)
|
506
|
+
* Fix the "Factories" section of README.rdoc (Tsutomu Kuroda)
|
507
|
+
|
508
|
+
== 5.0.4 2012-03-23
|
509
|
+
* Update ActiveRecord::AttributeMethods#Write for Rails 3.2.2 (Travis Warlick)
|
510
|
+
|
511
|
+
== 5.0.4 2012-03-23
|
512
|
+
* Yanked
|
513
|
+
|
514
|
+
== 5.0.2 2012-03-16
|
515
|
+
* Use .rdoc extension on RDoc files (Elia Schito)
|
516
|
+
* Update documentation to use self.primary_keys instead of set_primary_keys (Miguel Fonseca)
|
517
|
+
* Added tests for comparing composite ids (Jim Jones)
|
518
|
+
* Updating the README for clarity (Brett Fishman)
|
519
|
+
* Fix method signature mismatch with active_record (Miguel Fonseca)
|
520
|
+
* Fix ref in README (Elia Schito)
|
521
|
+
* Add test for habm create (Charlie Savage)
|
522
|
+
|
523
|
+
== 5.0.1 2012-02-13
|
524
|
+
* Fix deprecation warning that was exactly backwards (Tom Hughes)
|
525
|
+
* Fix primary_keys handling in models that inherit from other models
|
526
|
+
but don't redefine their primary_key. Problem was the inherited
|
527
|
+
models didn't correctly reference their parents primary_keys (Charlie Savage)
|
528
|
+
|
529
|
+
== 5.0.0 2012-02-12
|
530
|
+
* Fix tests so they pass on MySql (Charlie Savage)
|
531
|
+
* Fix calculations to work with duplicate column names (cleesmith)
|
532
|
+
* Switch rake tasks for Postgresql and MySql to use ActiveRecord API for
|
533
|
+
creating and dropping databases (Charlie Savage)
|
534
|
+
* Follow AR 3.2 lead and introduce self.primary_keys and deprecate set_primary_keys (Charlie Savage)
|
535
|
+
* Switch from set_primary_key to self.primary_key= to avoid Rails deprecation (Charlie Savage)
|
536
|
+
* Fix issue when using multiple database connections (David Doan)
|
537
|
+
* Fix homepage in gemspec and remove email address (Charlie Savage)
|
538
|
+
* Add support for string keys to exists? (Jan Vlnas)
|
539
|
+
* Fix typo (Jason Karns)
|
540
|
+
|
541
|
+
== 5.0.0.rc1 2012-01-16
|
542
|
+
* ActiveRecord 3.2 support
|
543
|
+
|
544
|
+
== 4.1.2 2012-01-12
|
545
|
+
* Helper to allow the same tests to be used for both Oracle and other DBs
|
546
|
+
by replacing quoted identifiers with all-caps equivalents on Oracle (Rhett Sutphin)
|
547
|
+
* Update Oracle tests (Rhett Sutphin)
|
548
|
+
|
549
|
+
== 4.1.1 2011-08-31
|
550
|
+
* Support for AR 3.1.1
|
551
|
+
* Make polymorphic belongs_to work in rails 3.1.1 (Tom Hughes)
|
552
|
+
* Eliminate relative paths from the test suite (Rhett Sutphin)
|
553
|
+
* Minor improvements to the CPK test runner w/o relative path changes (Rhett Sutphin)
|
554
|
+
* Remove stray puts (Rhett Sutphin)
|
555
|
+
* Allow AR logs to go to a file when running tests. This commit allows you to
|
556
|
+
specify a file to use instead via the CPK_LOGFILE environment variable.
|
557
|
+
STDOUT is still the default. (Rhett Sutphin)
|
558
|
+
* Use ADAPTER env variable to select database to test. For example:
|
559
|
+
|
560
|
+
ADAPTER=sqlite3 ruby test/test_suite.rb
|
561
|
+
(Rhett Sutphin)
|
562
|
+
|
563
|
+
* Eliminate constant redef warnings during test runs (Rhett Sutphin)
|
564
|
+
* Add missing fixture declarations (Rhett Sutphin)
|
565
|
+
* Standardize on integer PKs in polymorphic fixtures (Rhett Sutphin)
|
566
|
+
* Fix tiny file name typos (Buck)
|
567
|
+
|
568
|
+
== 4.0.0 2011-08-31
|
569
|
+
* Support for AR 3.1
|
570
|
+
|
571
|
+
== 4.0.0.beta9 2011-08-22
|
572
|
+
* Fix eager-loading in AR 3.1.rc6.
|
573
|
+
|
574
|
+
== 4.0.0.beta9 2011-082-22
|
575
|
+
* Fix eager-loading in AR 3.1.rc6.
|
576
|
+
|
577
|
+
== 4.0.0.beta8 2011-082-22
|
578
|
+
* Sqlite 3 fixes (Jan Vlnas)
|
579
|
+
* Fixes for to_key method (Jan Vlnas)
|
580
|
+
* Compatible with Rails 3.1 RC6 (Ari Epstein, Travis Warlick)
|
581
|
+
|
582
|
+
== 4.0.0.beta7 2011-07-26
|
583
|
+
* Compatible with Rails 3.1 RC5 (TycoooN)
|
584
|
+
* Do not use Arel::Nodes::Or to combine predicates because it creates a
|
585
|
+
deeply nested stack that blows up.
|
586
|
+
|
587
|
+
== 4.0.0.beta4 2011-07-22
|
588
|
+
* Compatible with Rails 3.1 stable branch. No longer works with RC4 (Charlie Savage)
|
589
|
+
* Do not require loading of postgresql gem unless needed (Charlie Savage)
|
590
|
+
|
591
|
+
== 4.0.0.beta3 2011-07-08
|
592
|
+
* Fix the ability to update the values of a primary key (Travis Warlick)
|
593
|
+
* Support port and host configurations for postgres rake tasks (Travis Warlick)
|
594
|
+
|
595
|
+
== 4.0.0.beta2 2011-06-21
|
596
|
+
* ActiveRecord 3.1 RC4 compatibility.
|
597
|
+
* Fix instantiation of CPK models with included associations
|
598
|
+
|
599
|
+
== 4.0.0.beta1 2011-06-09
|
600
|
+
* ActiveRecord 3.1 RC1 compatibility. This required a significant rewrite due to
|
601
|
+
all the changes in AR 3.1 versus 3.0.
|
602
|
+
|
603
|
+
== 3.1.11 2012-05-20
|
604
|
+
Fix AssociationReflection#derive_primary_key for belongs_to relationships (Heinrich Lee Yu).
|
605
|
+
|
606
|
+
== 3.1.10 2011-07-08
|
607
|
+
* Bugfix for belongs_to with includes (John Ash)
|
608
|
+
* Improved tests for calling clear on a habtm association, which involved (David Rueck)
|
609
|
+
* Fixed bug that resulted in unrelated records being deleted when calling (David Rueck)
|
610
|
+
* Output deprecation warnings about extra columns in join table CPK-aware (David Rueck)
|
611
|
+
|
612
|
+
|
613
|
+
== 3.1.9 2011-06-04
|
614
|
+
* Improve HABTM association tests (David Rueck)
|
615
|
+
* Remove deprecated Rake tasks (Charlie Savage)
|
616
|
+
|
617
|
+
== 3.1.8 2011-05-26
|
618
|
+
* Fix calling clear on a HABTM associate (David Rueck)
|
619
|
+
|
620
|
+
== 3.1.7 2011-05-26
|
621
|
+
* Support regular AR models having one or many composite models (Jacques Fuentes)
|
622
|
+
* Minor test cleanup (Charlie Savage)
|
623
|
+
* Make version requirements more explicit (Charlie Savage)
|
624
|
+
* Remove Arel extensions used for calculations (Charlie Savage)
|
625
|
+
* Fix test that included wrong error constant
|
626
|
+
|
627
|
+
== 3.1.6 2011-04-03
|
628
|
+
* Updated belongs_to association to be a bit more flexible with non-CPK (Charlie Savage)
|
629
|
+
base models (Jacques Fuentes)
|
630
|
+
* Fix uniqueness check (David Rueck)
|
631
|
+
* Fix write issue when one of they keys in a composite key is
|
632
|
+
called id (Tom Hughes)
|
633
|
+
|
634
|
+
|
635
|
+
== 3.1.5 2011-03-24
|
636
|
+
* Fix simple calculation methods (Charlie Savage)
|
637
|
+
* Fix instantiation of cpk records via associations (Charlie Savage)
|
638
|
+
* Fix Relation#delete (Charlie Savage)
|
639
|
+
* Fix Relation#destroy (Charlie Savage)
|
640
|
+
|
641
|
+
|
642
|
+
== 3.1.4 2011-03-06
|
643
|
+
* Support ActiveRecord 3.0.5 - interpolate_sql was removed and
|
644
|
+
replaced by interpolate_and_sanitize_sql (Charlie Savage)
|
645
|
+
* Fix persistence methods to support destroy callbacks (Charlie Savage)
|
646
|
+
* Support rake 0.9.0 beta (Charlie Savage)
|
647
|
+
|
648
|
+
|
649
|
+
== 3.1.2 2011-02-26
|
650
|
+
* Add back in support for find('3,3') which makes it possible to
|
651
|
+
do find(params[id]). This implementation is simpler than earlier version
|
652
|
+
improving code readability.
|
653
|
+
* Support for finding multiple records either via find([1,2], [3,4])
|
654
|
+
* Remove to_composite_ids method which is no longer needed
|
655
|
+
|
656
|
+
|
657
|
+
== 3.1.1 2011-02-07
|
658
|
+
* Implement id_before_type_cast (Jason Lewis)
|
659
|
+
* Add in tests for Model.includes(:other_model)
|
660
|
+
* Fix object comparison with nil in composite primary keys (StackNG)
|
661
|
+
* Make it easier to run tests with different database adapters (Toby Cabot)
|
662
|
+
* Fix AssociationReflection#primary_key_name for polymorphic relationships (Dave Doan)
|
663
|
+
|
664
|
+
|
665
|
+
== 3.1.0 2010-12-17
|
666
|
+
* Add back in rake test tasks (Toby Cabot)
|
667
|
+
* Add support for multiple string composite keys (wouter)
|
668
|
+
* Remove support for find('3,3'). Instead use find([3,3])
|
669
|
+
|
670
|
+
|
671
|
+
== 3.0.9 2010-12-04
|
672
|
+
* Fix up support for composite key fixtures.
|
673
|
+
|
674
|
+
|
675
|
+
== 3.0.8 2010-12-04
|
676
|
+
* Fix for translation issue in unique validation. Thanks to Daniel Berger for the patch.
|
677
|
+
* Fix to support child classes of composite primary key models
|
678
|
+
|
679
|
+
|
680
|
+
== 3.0.7 2010-11-29
|
681
|
+
* Fix has and belongs to many associations implementation.
|
682
|
+
|
683
|
+
|
684
|
+
== 3.0.6 2010-11-29 (yanked)
|
685
|
+
* Add full support for has and belongs to many associations.
|
686
|
+
|
687
|
+
|
688
|
+
== 3.0.5 2010-11-28 (yanked)
|
689
|
+
* Apply patch from Marian Rudzynski for fixing up attribute_methods/primary_key
|
690
|
+
* Apply patch from Toby Cabot to fix up various sqlite3 issues
|
691
|
+
* Add partial support for has and belongs to many associations. Currently a cpk model
|
692
|
+
can have a habtm, but a normal model cannot have a habtm to a cpk model (its actually
|
693
|
+
not too hard to add, but one step at a time...)
|
694
|
+
|
695
|
+
|
696
|
+
== 3.0.4 2010-11-21
|
697
|
+
* Support deleting records when dependent is set to :delete_all
|
698
|
+
* Switch the method #id to return a CompositeKeys instance (thus going back to how
|
699
|
+
this was done in previous CPK versions)
|
700
|
+
|
701
|
+
|
702
|
+
== 3.0.3 2010-11-19
|
703
|
+
* Support ActiveRecord 3.0.3 and Arel 2+
|
704
|
+
* Require ActiveRecord 3.0.3 as minimum dependency
|
705
|
+
* Fix double quoting issue with table names - thanks to Kevin Motschiedler for a patch.
|
706
|
+
* Fix SQLiteAdapter class inheritance issue - thanks to Brandon Hauff for a patch.
|
707
|
+
|
708
|
+
|
709
|
+
== 3.0.1.b3 2010-11-07
|
710
|
+
|
711
|
+
* Fix bug in joining to :has_one association
|
712
|
+
* Added support for Model.find(:last)
|
713
|
+
* Added support for finding via associations with
|
714
|
+
limited ids. For example find(:include => :foo, :limit => 1)
|
715
|
+
|
716
|
+
== 3.0.1.b2 2010-11-06
|
717
|
+
|
718
|
+
* Port to Rails 3.0 and Ruby 1.9.2
|
719
|
+
|
720
|
+
* Backwards compatability issues
|
721
|
+
+ You can no longer define a composite primary key with a single field. If you
|
722
|
+
try, your model will just default to a standard active record model. Removing
|
723
|
+
this corner case simplified the code.
|
724
|
+
+ Removed CompositePrimaryKeys::CompositeKeys. This was done so that the #to_s
|
725
|
+
method on composite ids, such as [1,2], returns "[1, 2]". This in turns
|
726
|
+
reduces the amount of core Rails code that needs to be overridden.
|
727
|
+
+ Setting attribute values by string is no longer supported. For example, this
|
728
|
+
no longer works:
|
729
|
+
my_record[[:main_id, :secondary_id]] = '1,2'
|
730
|
+
Instead, do this:
|
731
|
+
my_record[[:main_id, :secondary_id]] = [1,2]
|
732
|
+
Once again, this was done to reduce the amount of overridden Rails code
|
733
|
+
+ At the moment, complex finds with nested arrays do not work. For example
|
734
|
+
find([[1,2], [3,4]))
|
735
|
+
+ Count methods no longer work. For example, Tariff.count(:include => :product_tariffs)
|
736
|
+
in the TestAssociations#test_count test returns an error. This is because Rails 3.0
|
737
|
+
uses Arel to perform such calculations, and its not obvious (at least to me) how to
|
738
|
+
hook into this new mechanism to support tables with composite keys.
|
739
|
+
+ The TestPolymorphic#test_polymorphic_has_many_through is currently failing, but this
|
740
|
+
looks like an ActiveRecord 3.0 bug to me.
|
741
|
+
|
742
|
+
== 2.3.5.1 2010-02-13
|
743
|
+
|
744
|
+
* Resolved "warning: already initialized constant HasManyThroughCantAssociateThroughHasManyReflection" [Titi Ala'ilima]
|
745
|
+
|
746
|
+
== 2.3.5 2009-12-16
|
747
|
+
|
748
|
+
* Fixed several bugs in has_one and has_many associations when :primary_key specified [kpumuk]
|
749
|
+
|
750
|
+
== 2.3.2 2009-07-16
|
751
|
+
|
752
|
+
* explicitly load associations.rb due to some getting an unitialized constant error
|
753
|
+
|
754
|
+
== 2.3.2 2009-05-28
|
755
|
+
|
756
|
+
* get tests working again with AR 2.3.2
|
757
|
+
|
758
|
+
== 2.2.1 2009-01-21
|
759
|
+
|
760
|
+
* fix ActiveRecord#exists? to work when passing conditions instead of ids
|
761
|
+
|
762
|
+
== 2.2.0 2008-10-29
|
763
|
+
|
764
|
+
* Rails 2.2.0 compatibility
|
765
|
+
|
766
|
+
== 1.1.0 2008-10-29
|
767
|
+
|
768
|
+
* fixes to get cpk working for Rails 2.1.2
|
769
|
+
|
770
|
+
== 1.0.10 2008-10-22
|
771
|
+
|
772
|
+
* add composite key where clause creator method [timurv]
|
773
|
+
|
774
|
+
== 1.0.9 2008-09-08
|
775
|
+
|
776
|
+
* fix postgres tests
|
777
|
+
* fix for delete_records when has_many association has composite keys [darxriggs]
|
778
|
+
* more consistent table/column name quoting [pbrant]
|
779
|
+
|
780
|
+
== 1.0.8 2008-08-27
|
781
|
+
|
782
|
+
* fix has_many :through for non composite models [thx rcarver]
|
783
|
+
|
784
|
+
== 1.0.7 2008-08-12
|
785
|
+
|
786
|
+
* fix for the last fix -- when has_many is composite and belongs_to is single
|
787
|
+
|
788
|
+
== 1.0.6 2008-08-06
|
789
|
+
|
790
|
+
* fix associations create
|
791
|
+
|
792
|
+
== 1.0.5 2008-07-25
|
793
|
+
|
794
|
+
* fix for calculations with a group by clause [thx Sirius Black]
|
795
|
+
|
796
|
+
== 1.0.4 2008-07-15
|
797
|
+
|
798
|
+
* support for oracle_enhanced adapter [thx Raimonds Simanovskis]
|
799
|
+
|
800
|
+
== 1.0.3 2008-07-13
|
801
|
+
|
802
|
+
* more fixes and tests for has many through [thx Menno van der Sman]
|
803
|
+
|
804
|
+
== 1.0.2 2008-06-07
|
805
|
+
|
806
|
+
* fix for has many through when through association has composite keys
|
807
|
+
|
808
|
+
== 1.0.1 2008-06-06
|
809
|
+
|
810
|
+
* Oracle fixes
|
811
|
+
|
812
|
+
== 1.0.0 2008-06-05
|
813
|
+
|
814
|
+
* Support for Rails 2.1
|
815
|
+
|
816
|
+
== 0.9.93 2008-06-01
|
817
|
+
|
818
|
+
* set fixed dependency on activerecord 2.0.2
|
819
|
+
|
820
|
+
== 0.9.92 2008-02-22
|
821
|
+
|
822
|
+
* Support for has_and_belongs_to_many
|
823
|
+
|
824
|
+
== 0.9.91 2008-01-27
|
825
|
+
|
826
|
+
* Incremented activerecord dependency to 2.0.2 [thx emmanuel.pirsch]
|
827
|
+
|
828
|
+
== 0.9.90 2008-01-27
|
829
|
+
|
830
|
+
* Trial release for rails/activerecord 2.0.2 supported
|
831
|
+
|
832
|
+
== 0.9.1 2007-10-28
|
833
|
+
|
834
|
+
* Migrations fix - allow :primary_key => [:name] to work [no unit test] [thx Shugo Maeda]
|
835
|
+
|
836
|
+
== 0.9.0 2007-09-28
|
837
|
+
|
838
|
+
* Added support for polymorphs [thx nerdrew]
|
839
|
+
* init.rb file so gem can be installed as a plugin for Rails [thx nerdrew]
|
840
|
+
* Added ibm_db support [thx K Venkatasubramaniyan]
|
841
|
+
* Support for cleaning dependents [thx K Venkatasubramaniyan]
|
842
|
+
* Rafactored db rake tasks into namespaces
|
843
|
+
* Added namespaced tests (e.g. mysql:test for test_mysql)
|
844
|
+
|
845
|
+
== 0.8.6 / 2007-6-12
|
846
|
+
|
847
|
+
* 1 emergency fix due to Rails Core change
|
848
|
+
* Rails v7004 removed #quote; fixed with connection.quote_column_name [thx nerdrew]
|
849
|
+
|
850
|
+
== 0.8.5 / 2007-6-5
|
851
|
+
|
852
|
+
* 1 change due to Rails Core change
|
853
|
+
* Can no longer use RAILS_CONNECTION_ADAPTERS from Rails core
|
854
|
+
* 7 dev improvement:
|
855
|
+
* Changed History.txt syntax to rdoc format
|
856
|
+
* Added deploy tasks
|
857
|
+
* Removed CHANGELOG + migrated into History.txt
|
858
|
+
* Changed PKG_NAME -> GEM_NAME in Rakefile
|
859
|
+
* Renamed README -> README.txt for :publish_docs task
|
860
|
+
* Added :check_version task
|
861
|
+
* VER => VERS in rakefile
|
862
|
+
* 1 website improvement:
|
863
|
+
* website/index.txt includes link to "8 steps to fix other ppls code"
|
864
|
+
|
865
|
+
== 0.8.4 / 2007-5-3
|
866
|
+
|
867
|
+
* 1 bugfix
|
868
|
+
* Corrected ids_list => ids in the exception message. That'll teach me for not adding unit tests before fixing bugs.
|
869
|
+
|
870
|
+
== 0.8.3 / 2007-5-3
|
871
|
+
|
872
|
+
* 1 bugfix
|
873
|
+
* Explicit reference to ::ActiveRecord::RecordNotFound
|
874
|
+
* 1 website addition:
|
875
|
+
* Added routing help [Pete Sumskas]
|
876
|
+
|
877
|
+
== 0.8.2 / 2007-4-11
|
878
|
+
|
879
|
+
* 1 major enhancement:
|
880
|
+
* Oracle unit tests!! [Darrin Holst]
|
881
|
+
* And they work too
|
882
|
+
|
883
|
+
== 0.8.1 / 2007-4-10
|
884
|
+
|
885
|
+
* 1 bug fix:
|
886
|
+
* Fixed the distinct(count) for oracle (removed 'as')
|
887
|
+
|
888
|
+
== 0.8.0 / 2007-4-6
|
889
|
+
|
890
|
+
* 1 major enhancement:
|
891
|
+
* Support for calcualtions on associations
|
892
|
+
* 2 new DB supported:
|
893
|
+
* Tests run on sqlite
|
894
|
+
* Tests run on postgresql
|
895
|
+
* History.txt to keep track of changes like these
|
896
|
+
* Using Hoe for Rakefile
|
897
|
+
* Website generator rake tasks
|
898
|
+
|
899
|
+
== 0.3.3
|
900
|
+
* id=
|
901
|
+
* create now work
|
902
|
+
|
903
|
+
== 0.1.4
|
904
|
+
* it was important that #{primary_key} for composites --> 'key1,key2' and not 'key1key2' so created PrimaryKeys class
|
905
|
+
|
906
|
+
== 0.0.1
|
907
|
+
* Initial version
|
908
|
+
* set_primary_keys(*keys) is the activation class method to transform an ActiveRecord into a composite primary key AR
|
909
|
+
* find(*ids) supports the passing of
|
910
|
+
* id sets: Foo.find(2,1),
|
911
|
+
* lists of id sets: Foo.find([2,1], [7,3], [8,12]),
|
912
|
+
* and even stringified versions of the above:
|
913
|
+
* Foo.find '2,1' or Foo.find '2,1;7,3'
|