- #149: Back fetching modifier from controller - @melnikaite.
- Your contribution here.
- #143: Added support for Mongoid 5 - @dblock.
- #133: Added dynamic attributes tracking (Mongoid::Attributes::Dynamic): @minisai.
- #142: Allow non-database fields to be specified in conjunction with a custom changes method - @kayakyakr.
- #131: Added
undomethod, that helps to get specific version of an object without saving changes - @alexkravets. - #127: Fixed gem naming per rubygems specs, now you can
require 'mongoid/history'- @nofxx. - #129: Support multiple levels of embedded polimorphic documents - @BrunoChauvet.
- #123: Used a method compatible with mongoid-observers to determinine the version of Mongoid - @zeitnot.
- #110: Fixed scope reference on history tracks criteria - @adbeelitamar.
- #106: Added support for polymorphic relationship
scope- @adbeelitamar. - #106: Enabled specifying an array of relationships in
scope- @adbeelitamar. - #83: Added support for Mongoid 4.x, which removed
attr_accessiblein favor of protected attributes - @dblock. - #103: Fixed compatibility with models using
default_scope- @mrjlynch.
- Fixed compatibility with Mongoid 4.x - @dblock.
Mongoid::History::Sweeperhas been removed, in accorance with Mongoid 4.x (see #3108) and Rails 4.x observer deprecation - @dblock.- Default modifier parameter to
nilinundo!andredo!- @dblock. - Fixed
undo!andredo!for mass-assignment protected attributes - @mati0090. - Implemented Rubocop, Ruby style linter - @dblock.
- Remove unneeded coma from README - @matsprea.
- Replace Jeweler with Gem-Release - @johnnyshields.
- Track version as a Ruby file - @johnnyshields.
- Added
Mongoid::History.disableandMongoid::History.enabled?methods for global tracking disablement - @johnnyshields. - Added
:changes_methodthat optionally overrides which method to call to collect changes - @joelnordel. - [API Change] The
:destroyaction now stores trackers in the formatoriginal=value, modified=nil(previously it was the reverse): @johnnyshields. - Support for polymorphic embedded classes - @tstepp.
- Support for Mongoid field aliases, e.g.
field :n, as: :name- @johnnyshields. - Support for Mongoid embedded aliases, e.g.
embeds_many :comments, store_as: :coms- @johnnyshields. - Added
#tracked_changesand#tracked_editsmethods toTrackerclass for nicer change summaries - @johnnyshields and @tstepp. - Refactored and exposed
#trackable_parent_classinTracker, which returns the class of the trackable regardless of whether the trackable itself has been destroyed - @johnnyshields. - Added class-level
#tracked_field?and#tracked_fieldsmethods; refactor logic to determine whether a field is tracked - @johnnyshields. - Fixed bug in Trackable#track_update where
returncondition at beginning of method caused a short-circuit where memoization would not be cleared properly. - @johnnyshields. - Tests: Added spec for nested embedded documents - @matekb.
- Tests: Test run time cut in half (~2.5s versus ~5s) by using
#lethelper and removing class initialization before each test - @johnnyshields. - Tests: Remove
database_cleanergem in favor ofMongoid.purge!- @johnnyshields. - Tests: Remove dependency on non-committed file
mongoid.ymland hardcode collection tomongoid_history_test- @johnnyshields.
- #42: Fix: corrected creation of association chain when using nested embedded documents - @matekb.
- #56: Fix: now possible to undo setting (creating) attributes that was previously unset - @matekb.
- #49: Fix: now correctly undo/redo localized fields - @edejong.
- #54: Used an index instead of the
$elemMatchselector inhistory_tracks- @vecio. - #11: Added
:modifier_field_inverse_ofontrack_historythat defines the:inverse_ofrelationship of the modifier class - @matekb, @dblock.
- #45: Fix: intermittent hash ordering issue with
history_tracks- @getaroom. - #50: Fix: tracking of array changes, undo and redo of field changes on non-embedded objects - @dblock.
- #38: Fix: allow sub-models to be tracked by using
collection_nameas the scope - @acant. - #35: Fix: sweeper references record of change, not the record changed - @dblock.
- #23: Updated
Trackable::association_hashto write through parent - @tcopple. - Fix:
Trackable::association_hashnil meta value call - @tcopple. - #27: Added support for re-creation of destroyed embedded documents - @erlingwl
- Fix: tracking
falsevalues - @gottfrois. - Used a mongoid observer and controller
around_filterto pick up modifying user from controller - @bensymonds. - More flexible dependency on mongoid - @sarcilav.
- Fix: tracking broken in a multithreaded environment - @dblock.
- Added support for
destroy- @dblock. - Added undo and redo - @aq1018.
- Added support for temporarily disabling history tracking - @aq1018.
- Record modifier for undo and redo actions - @aq1018.
- Intial public release - @aq1018.