paper_trail-association_tracking
paper_trail-association_tracking copied to clipboard
Plugin for the PaperTrail gem to track and reify associations
Whenever I call `reify` with `has_one: true`, I'm getting below error: ``` ActiveRecord::ConfigurationError: Can't join 'PaperTrail::Version' to association named 'version_associations'; ```
Hello ! I've a problem with module `paper_trail-association_tracking` I've made a belongs_to association references to a class_name: `belongs_to :address, class_name: "GeocodedAddress", autosave: true` When i make an reify to this...
I had a need to try to track changes of a has many through relationship using paper trail and have leveraged some of the work in this project to do...
Transitioning away from using base_class in order to support versioned sub-classes that utilise STI. The other half of this fix is in [PR #1108](https://github.com/paper-trail-gem/paper_trail/pull/1108) in PaperTrail.
https://github.com/westonganger/paper_trail-association_tracking/blob/015422c567f75b6b8de708312b5dc9b7da143437/lib/paper_trail_association_tracking/reifiers/has_many.rb#L104 The line above leads to errors as soon as you customize the version association name. It tries to join `::PaperTrail::VersionAssociation` to some a wrong association (e.g. my_custom_version) while it...
I'm trying to use papetrail and papetrail association track storing its data into a different database. I achieved that for the `PaperTrail::Version` model by [following the papetrail doc](https://github.com/paper-trail-gem/paper_trail#6a-custom-version-classes) I saw...
Whenever I update a main record, versions for hundreds associated through 'has_and_belongs_to_many' records are created. Is that an expected behavior? ``` class AnyModel < ApplicationRecord has_and_belongs_to_many :any_associations end record =...
Currently, I have enabled the following - `PaperTrail.config.track_associations = true`. But this would track all models and associations and add to the versions_associations table. I was wondering if there is...
Originally filed at: https://github.com/paper-trail-gem/paper_trail/issues/1095 This may be intentional despite the docs indicating otherwise but Association Versioning only ever returns the most recent version. I'll fill out the template but I've...
Hi folks! I have encountered the following issue while using this gem. Issue: When a model has a `belong_to`, polymorphic and optional association, and the model has `_type = ''`...