sign2pay / mongoid-archivable Goto Github PK
View Code? Open in Web Editor NEWMove Mongoid documents to an archive instead of destroying them
License: MIT License
Move Mongoid documents to an archive instead of destroying them
License: MIT License
Am I able to archive older records if a query returns a set of records over X?
I have a chat room, and i want to start archiving messages if the room has over 10,000 messages.
I'm getting a deprecation warning when running Rails 6.0:
DEPRECATION WARNING: `Module#parent` has been renamed to `module_parent`. `parent` is deprecated and will be removed in Rails 6.1.
I believe it's is stemming from Mongoid::Archivable::Depot
:
I'd love to submit a PR with a fix, but I'm unsure how best to go about it... I could simply replace parent
with module_parent
, but I'm quite certain it would break backwards compatibility.
I guess we would need to check for which version of ActiveSupport
is used? Curious what your thoughts are ๐
@tilsammans I made a small adjustment to the code (#7 memoization of the original document) and merged it to master. Could you please update the version to 1.4.2
and release this version of the gem? Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.