Skip to content

Conversation

@ngobin
Copy link

@ngobin ngobin commented Apr 14, 2025

rails generate paper_trail:install creates a paper_trail.rb initializer file that disables versioning on touch events by default. The initializer file also has examples for the other significant global config settings mentioned in the readme.

install_generator.rb already contained old comments about creating an initializer file, however the initializer generation was removed when association tracking was split off in 2018 (Commit 1d42d0d).

Thank you for your contribution!
Check the following boxes:

  • Wrote [good commit messages][1].
  • Feature branch is up-to-date with master (if not - rebase it).
  • Squashed related commits together.
  • Added tests.
  • Added an entry to the Changelog if the new
    code introduces user-observable changes.
  • The PR relates to only one subject with a clear title
    and description in grammatically correct, complete sentences.

ngobin and others added 2 commits April 14, 2025 13:01
revert unintended change made by Appraisal
@ngobin
Copy link
Author

ngobin commented Apr 30, 2025

This closes #1459

@github-actions
Copy link

This PR has been automatically marked as stale due to inactivity.
The resources of our volunteers are limited.
If this is something you are committed to continue working on, please address any concerns raised by review and/or ping us again.
Thank you for all your contributions.

@github-actions github-actions bot added the Stale label Jul 30, 2025
@ngobin
Copy link
Author

ngobin commented Jul 30, 2025

Not stale, solution is ready to merge.

@github-actions github-actions bot removed the Stale label Jul 31, 2025
## Track versions on create, update, & destroy, but not touch events to reduce version table size.
## Add `touch` below to track touch events, or comment out (default behaviour tracks all events).
PaperTrail.config.has_paper_trail_defaults = {
on: %i[create update destroy]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i like the generation of this file but i don't think the config generated here should differ from the existing defaults. i realize this goes against part of the intent of your pr but it results in an implicit change to the defaults for anyone starting from scratch which feels inconsistent to me.

@ngobin
Copy link
Author

ngobin commented Sep 4, 2025

Ok, updated initializer so that config generated maintains touch events by default. Added a comment to maintain intent the issue instead.

@ngobin ngobin requested a review from modosc September 7, 2025 17:44
@github-actions
Copy link

github-actions bot commented Dec 7, 2025

This PR has been automatically marked as stale due to inactivity.
The resources of our volunteers are limited.
If this is something you are committed to continue working on, please address any concerns raised by review and/or ping us again.
Thank you for all your contributions.

@github-actions github-actions bot added the Stale label Dec 7, 2025
@ngobin
Copy link
Author

ngobin commented Dec 8, 2025

Not stale, just needs review and merge.

@github-actions github-actions bot removed the Stale label Dec 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants