Description
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 code snippet in one of my model
include Mongoid::History::Trackable
telling Mongoid::History how you want to track changes
track_history :track_create => true, # track document creation, default is false
:track_update => true, # track document updates, default is true
:track_destroy => true, # track document destruction, default is false
:changes_method => :changes_with_schedule,
:modifier_field => :modifier
But modifier_id is not updating on updating the record.
Please let me know if i am missing something or modifier field doesn't support the deveice gem