Jared Beck
cfbf7a647c
Lint: Style/FrozenStringLiteralComment
2017-12-10 23:05:39 -05:00
Jared Beck
f963752703
Breaking change: Remove custom timestamp feature
...
A little over four years ago, a feature was added to allow users
to change the name of the `versions.created_at` column. No reason
was given at the time.
https://github.com/airblade/paper_trail/pull/129
There are three reasons why this should not be configurable:
1. The standard column name in rails is `created_at`.
2. The majority of the `versions` table is, and should be, an
implementation detail of PT.
3. This configuration option added moderate complexity to the
library, and severe complexity to the test suite.
2016-09-04 00:41:21 -04:00
Jared Beck
a0e3f43ad1
Docs: Describe all modules
2016-04-09 01:08:34 -04:00
Jared Beck
750d14635f
Fix Style/RaiseArgs
2016-03-05 17:19:01 -05:00
Jared Beck
c24d0b4780
Fix whitespace
2016-03-05 17:11:08 -05:00
Jared Beck
10941c8459
Fix Style/HashSyntax
2016-02-15 22:32:40 -05:00
Jared Beck
3a7ddeed2c
Fix Lint/UnderscorePrefixedVariableName
2016-02-15 20:09:59 -05:00
Ben Atkins
c200721005
Use Version#timestamp_sort_order for ordering of versions on Cleaner
2016-01-20 00:48:29 -05:00
Owen Rodda
c4e7b3c744
Default order by timestamp to ensure early versions are cleaned
2016-01-19 07:39:09 -05:00
Jared Beck
3a72b7f7c7
Code style: Break long lines
2015-12-13 00:01:40 -05:00
Jared Beck
78f0983e76
Extract method: group_versions_by_date
2015-12-12 23:57:58 -05:00
Jared Beck
68a0ab79df
Format comments
...
- Wrap comments at 80 chars
- Fix English grammar
- Start sentances with capital letters
- End sentances with a period
- Use markdown for lists, e.g. method arguments
[ci skip]
2015-08-03 16:45:42 -04:00
Josef Šimánek
9bbdaba409
raise ArgumentError in gather_versions
2015-02-08 21:06:40 +01:00
Ben Atkins
a79ad661bc
close #437 ; Condense and refactor some code block args for readability's sake
2014-12-29 12:31:44 -05:00
Ben Atkins
1c00c0e7d2
Tests to cover changes from cb46e87; Cleaner module should group versions by PaperTrail.timestamp_field
2014-03-18 15:56:53 -04:00
Russell Osborne
cb46e87050
When Cleaning Versions ensure they are in the correct order.
2014-03-16 11:08:39 -04:00
Ben Atkins
3c775aa6b3
Merge branch 'rails4'
...
Conflicts:
README.md
lib/paper_trail/has_paper_trail.rb
lib/paper_trail/version.rb
test/dummy/config/initializers/paper_trail.rb
test/unit/model_test.rb
test/unit/version_test.rb
2013-08-01 14:57:44 -04:00
Ben Atkins
087840932d
Changing the :clean_versions! method on the Cleaner module so that it accepts an options hash as an argument, and additional configurable options.
2013-07-31 13:46:25 -04:00
Ben Atkins
9e7ebc17d7
Refactoring the Cleaner module to have condensed and more readable code, and better tests
2013-07-30 17:58:44 -04:00
Sean Marcia
d6faa94c85
Updated the cleaner module to give the clean_paper_trail_versions method the option of passing in a value. Also created a keep versions method that keeps the specified number of versions.
2013-07-16 20:53:18 -04:00
Sean Marcia
dfe5e319ab
Cleaner module with methods for grouping, analyzing, sorting and then sanitizing(removing) extra versions.
2013-03-21 16:48:14 -04:00