Module: Lanes::Concerns::TrackModifications

Extended by:
ActiveSupport::Concern
Defined in:
lib/lanes/access/track_modifications.rb

Overview

Extends Rails updated_by and created_by timestamps to also track who created and updated the model. It reads the current user’s id from User.current_id when saving and updating the record The class_name for the created_by and updated_by is set to Lanes::Configuration#user_model