1
0
Fork 0
mirror of https://github.com/paper-trail-gem/paper_trail.git synced 2022-11-09 11:33:19 -05:00
paper-trail-gem--paper_trail/spec
Phil Coggins bca9aa5edf Removes item_subtype requirement for model-specific limits.
* When enforcing limits for a model, it was previously required to
  have the item_subtype column on the versions table to obtain the
  configured limit for a given model type, especially for models
  subclassed via STI.

* This change instead references the item on the version record,
  which is already available via the association cache, to determine
  the properly configured limit. This change drops the requirement of
  having item_subtype to configure model-specific limits.
2021-07-24 23:23:59 -04:00
..
controllers Lint: Fix RSpec/HooksBeforeExamples 2020-08-18 01:56:22 -04:00
dummy_app Merge pull request #1281 from paper-trail-gem/jb_lazy_load_rails 2021-03-29 10:53:53 -04:00
generators/paper_trail Fix 'rails db:migrate' error when run against an app with mysql2 adapter (#1298) 2021-03-26 10:38:21 -04:00
models Queries: object_changes: Simplify error instantiation 2021-04-06 12:13:04 -04:00
paper_trail Removes item_subtype requirement for model-specific limits. 2021-07-24 23:23:59 -04:00
requests Prepare for v11 (#1235) 2020-03-02 21:58:33 -05:00
support Query Versions Where Attribute Changed (#1292) 2021-04-05 15:11:49 -04:00
paper_trail_spec.rb Lint: Fix RSpec/HooksBeforeExamples 2020-08-18 01:56:22 -04:00
spec_helper.rb Install simplecov, require a minimum coverage 2021-07-24 23:18:52 -04:00