mongoid-history
mongoid-history copied to clipboard
Multi-user non-linear history tracking, auditing, undo, redo for mongoid.
@dblock: Here's the test that should reproduce the issue #120 Hope it helps.
Added the function 'version_at' to get a copy of the object at a given date.
Hi i am using mongoid-history gem along with the device gem for authentication. Following is the code snippet in my mongoid-history.rb(initializer) Mongoid::History.tracker_class_name = :history_tracker Mongoid::History.current_user_method = :current_user Following is the...
``` it "should allow an alternate method to be specified on object creation" do class CustomTracker < MyModel field :key track_history on: :key, changes_method: :my_changes, track_create: true, track_update: true def...
I have a model that among other fields it uses a money-rails field (money type): ``` class MyModel include Mongoid::Document include Mongoid::Timestamps include Mongoid::History::Trackable field :name, type: String field :date,...
It would be very useful to be able to group a series of small updates / changes into a single changeset. Presumably a changeset would be determined by the same...
Hi I have a scenario in that i have updated the embedded_document using nested attributes but it is not getting tracked but the changes in the outer document are getting...
I have class called Category: ``` class Category include Mongoid::Document include Mongoid::Timestamps include Mongoid::History::Trackable field :name, type: String track_history :on => [:name], # track title and body fields only, default...
We're huge fans of mongoid-history, but are finding that we're generating a sufficiently large history tracks collection (>1B documents) that MongoDB itself may not be the best database to store...