If you are reading this post you are probably a user of mongoid history gem. So most likely you have faced an issue that modifier field does not get set. It simply becomes nil. This is because in development mode Rails does not load all models/classes when server starts. In this case because of HistoryTracker model is not loaded filter does not get added to the appropriate controller therefore it can not get current_user method. To solve this issue just add following line in your mongoid_history initializer:
comments powered by Disqus