Comments (3)
Solved, cause target_object.id is not a String value.
from streama.
@regdog : Could you please let me know how you were able to retrieve the activities using object or targetObject's Id? thanks.
from streama.
After playing around for awhile here is the solution that I'm using is below.. if anyone has more elegant way of doing this, do let me know
Activity.where('target_object.id' => Moped::BSON::ObjectId('xxxxxxx'), 'target_object.type' => 'foo-bar-baz').count
from streama.
Related Issues (20)
- Small testapp for Streama
- Actor could be a polymorphic resource HOT 3
- Mongoid 3 support HOT 1
- Specifying DSL in YML instead of ruby data structures HOT 7
- Activities grouped by post HOT 4
- Activities by target_object or object HOT 2
- undefined method `published_activities' HOT 2
- How to add pagination HOT 1
- 0.3.6 - NoMethodError: undefined method `find' for Object:Class HOT 2
- Set a flag when a user has viewed an activity. HOT 4
- adding SQL database support for actor HOT 1
- Aggregated similar events together HOT 5
- Index definition syntax HOT 4
- Integrate the likes/comments for activity HOT 1
- Mongoid 3.1 compatability HOT 3
- Do you need help on fan out on write? HOT 1
- Invalid Data for class with namespace HOT 1
- Possible discrepancy in the class to symbol casting
- Single table inheritance - type field breaks `load_instance` when cached
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from streama.