title: Write a global method that sets created_by and updated_by by current_user
body: <p>All models in my project have created_by and updated_by. Created_by is set by current_user on create and updated_by is set by current_user on update. Is there a way to write one global method to manage this?</p>