Ben Atkins
4601926f0c
close #372 ; Use Arel for SQL construction on VersionConcern for cleanliness; fix VersionConcern#index so it also sorts by primary key when possible
2014-05-28 19:18:53 -04:00
Ben Atkins
0b05a58763
:versions association should default to sorting by the VersionConcern#timestamp_order method to match the scope methods
2014-05-09 11:01:33 -04:00
Ben Atkins
1a13748ab1
Attempt to sort based on primary key in scope methods on VersionConcern if primary key is an integer.
...
This makes some of the changes to these scope methods that came from 6a4aba2
more flexible,
in that the user can choose to compare timestamps if desired, but it defaults to comparing and sorting,
via the primary key (if it is an integer). If the primary key is not an integer, it still defaults
to using the PaperTrail.timestamp_field.
This is my proposed fix for #314 , and I also believe it should fix #317 . It seems that that this issue
is usually encountered when testing PaperTrail with MySQL (presumably due to lack of microsecond timestamp support).
2014-04-30 18:13:04 -04:00
Russell Osborne
de0c75aa80
On Teardown Restore schema to previous state.
2014-03-16 11:07:17 -04:00
Ben Atkins
0258fd5057
Explicitly specify table name for scope methods on VersonConcern. close #295
2013-11-15 13:54:30 -05:00
Ben Atkins
20e18c9ec1
Bumping development dependency for activerecord sqlite3 adapter for JRuby to final release of 1.3; omitting some assertions on the VersionTest that don't seem to pass consistently in JRuby
2013-10-10 16:23:31 -04:00
Ben Atkins
8f903a6c65
Ommit assertions on VersionTest in Ruby18 when not possible
2013-10-10 15:09:40 -04:00
Ben Atkins
6a4aba2875
Switching many of the scopes and methods on the Version class that deal with ordering to use the timestamp_field for ordering instead of the primary key to keep consistent with the change that was made for #235
2013-10-10 13:59:53 -04:00
Ben Atkins
379506ada3
Removing legacy support for non-namespaced Version class. close #267
2013-09-26 10:54:03 -04:00
Ben Atkins
92ff960feb
Fixing the VersionTest class
2013-08-27 12:16:01 -04:00
Ben Atkins
967c0c15b5
Providing non-namespaced Version class that subclasses from the namespaced one with deprecation warnings. Relates to #165
2013-08-27 11:17:20 -04:00
Ben Atkins
7bc537a45a
Namespacing version class under the PaperTrail module. Fix #165
2013-05-29 17:19:05 -04:00
Ben Atkins
dbb4f28325
Add version limit config option. Close #213
2013-05-23 15:56:19 -04:00
Ben Woosley
866eff0a5e
Add handy scopes: Version.creates, .updates, .destroys
2012-03-12 16:22:21 -07:00