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/paper_trail
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
..
attribute_serializers Remove vestigial version conditionals 2021-03-21 01:07:08 -04:00
events Use Time.current everywhere 2021-03-17 23:33:46 -04:00
serializers Queries: object_changes: Simplify error instantiation 2021-04-06 12:13:04 -04:00
cleaner_spec.rb Lint: Style/FrozenStringLiteralComment 2017-12-10 23:05:39 -05:00
compatibility_spec.rb Update compatibility_spec.rb 2021-04-21 13:13:12 -05:00
config_spec.rb Removes item_subtype requirement for model-specific limits. 2021-07-24 23:23:59 -04:00
model_config_spec.rb Alphabetize methods, other code style 2018-11-12 13:05:15 -05:00
model_spec.rb Remove vestigial version conditionals 2021-03-21 01:07:08 -04:00
request_spec.rb Introduce PaperTrail::Error class 2021-04-05 16:14:50 -04:00
serializer_spec.rb Update rubocop et. al. to latest 2021-03-21 00:03:07 -04:00
version_limit_spec.rb add 'limit' option to has_paper_trail to override global PaperTrail.config.version_limit setting (#1194) 2019-03-22 15:10:56 -04:00
version_number_spec.rb Lint: Style/FrozenStringLiteralComment 2017-12-10 23:05:39 -05:00
version_spec.rb Support rails 6.0.0 (#1172) 2018-12-04 16:10:35 -05:00