Comments (3)
Im updating a project to rails 6.1 and im having the same issue using zeitwerk 2.6.7, i've updated paper_trail to 12.1 but having a model like
module PaperTrail
class Version < ActiveRecord::Base
include PaperTrail::VersionConcern
end
end
class PostVersion < PaperTrail::Version
self.table_name = :post_versions
self.sequence_name = :post_versions_id_seq
end
im getting an error loading that model:
NameError: uninitialized constant PaperTrail::VersionConcern
I updated the gem because in the compatibility table is mentioned that version 11 requires rails >= 5.2, < 6.1, not rails <= 6.1
For now I must use version 11.1, and solve the problem with the models that include the limit parameter, adding a migration to add the item_subtype column.
from paper_trail.
Why would you do that and not just use PaperTrail::Version?
from paper_trail.
This issue has been automatically marked as stale due to inactivity.
The resources of our volunteers are limited.
Bug reports must provide a script that reproduces the bug, using our template. Feature suggestions must include a promise to build the feature yourself.
Thank you for all your contributions.
from paper_trail.
Related Issues (20)
- Update YAML->JSON suggested solution in `README.md`. HOT 3
- paper_trail.update_columns is setting an incorrect Version#created_at value HOT 1
- paper_trail:install requires a db connection HOT 2
- Version table should use uuid as id when generating a migration HOT 2
- PaperTrail with Rails 7: history index and history show not showing any data HOT 2
- User must exist error HOT 2
- Error log doesn't provide valuable output. HOT 2
- Make created_at dependence on record#updated_at configurable HOT 1
- The reified model attribute is null if the column type is time HOT 1
- Records with serialized attributes with both database and model defaults throw serialization errors HOT 3
- Track timestamp of destroy event HOT 2
- changeset shows no changes,but it's created HOT 2
- Wrong attributes are stored for encrypted attributes HOT 6
- Silenced failures on yaml parsing with an empty changeset HOT 2
- The "paper_trail" initializer is not guaranteed to execute before the "load_config_initializers" initializer HOT 1
- Add Proc to skip HOT 4
- Change the Versions table name HOT 4
- Support Rails 7.1 HOT 5
- Drop RequestStore in favor of ActiveSupport::CurrentAttributes HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from paper_trail.