DEV Community

Amit Leshed
Amit Leshed

Posted on

*NEW GEM* ActsAsActive: Plug-and-play activity tracking for ActiveRecord

ActsAsActive is a plug-and-play Rails extension that adds activity tracking to any model. It wires a polymorphic association and records Activity rows on the lifecycle events you choose, then surfaces daily counts, streak analytics, and heatmap-friendly data. Works with PostgreSQL or MySQL/SQLite and ships with a metadata column for extra context—plus a namespaced model (ActsAsActive::Activity) and generators so you can set it up in seconds. Feedback and PRs welcome.

GitHub: https://github.com/amitleshed/ActsAsActive

Top comments (0)