Active Record automatically userstamps create and update operations if the table has fields named created_by or updated_by.
Michael Balsiger
gem "magic_user", "~> 0.0.2"