wvanbergen/state_machine-audit_trail — pull request #23 by weyus (2013-12-19 22:24:07+00:00)
Title: Rails 2 support and minor logging fix

Unfortunately, we are still on Rails 2.3.18 (but moving to Rails 3 soon), so I had to backport the gem to Rails 2 (only the model/migration generator was affected). I couldn't get a namespace generator working so changed the generator name to StateMachineAuditTrailGenerator, which slightly changes the options to the generate command.

Aside from Rails 2, by default, events specified as symbols in the state machine model were being stored as serialized YAML strings (e.g. "--- :reset\n"), so I changed the logging to force those events to be strings before they were stored.