christospappas / streama

Streama is a simple activity stream gem for use with the Mongoid ODM framework.
MIT License
132 stars 30 forks source link

Activities by target_object or object #16

Closed henrydjacob closed 12 years ago

henrydjacob commented 12 years ago

How to get the list of activities belong to an object or target_object

christospappas commented 12 years ago

Since Streama is built on top of Mongoid you can query the Activity model directly.

Is it worth adding a method to return activities for objects? What sort of scenario would you use that in?

sairamc commented 11 years ago

This is useful for check-ins feature. Let's say User is an actor, Checkin is an object and location is target. If you want to retrieve all the check-ins in a specific location, this would be super useful.