jamesgolick/timeline_fu — pull request #11 by onedesign (2011-10-14 13:15:29+00:00)
Title: Support for :unless, passing attributes, parametrizing :event_class_name, and cleanup

Hello!

We recently introduced `timeline_fu` into a project, and made some changes which we think would be helpful for everyone.

This fork was based off `szajbus/timeline_fu` and incorporates their features, which came in handy.

It also adds support for specifying `:event_class_name`, so `TimelineEvent` is not hardcoded, as well as specifying more than one event class. This is helpful in situations where tracking for events by `Comment` should be handled by `CommentEvent` and be separate from `Post`, which is handled by `PostEvent`, for example. We also found it helpful to specify `:event_class_name => ["CommentEvent", "UserEvent"]`, thus being able to easily build an audit log for a particular Comment, as well as an entire activity log for a User.

Finally, we cleaned up the gemspec and added the gem’s dependencies to it, introduced bundler, and appraisal, so the gem is now tested against the latest stable version of `ActiveRecord` `2.3.x`, `3.0.x`, and `3.1.x` (all tests currently pass, of course)

We hope you approve and thanks for starting `timeline_fu`!

Cheers,

The folks at [One Design Company](http://onedesigncompany.com/)