A Rails engine for event capturing