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/lib
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
..
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
paper_trail Removes item_subtype requirement for model-specific limits. 2021-07-24 23:23:59 -04:00
paper_trail.rb Introduce PaperTrail::Error class 2021-04-05 16:14:50 -04:00