christospappas / streama

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

Invalid Data for class with namespace #32

Closed regdog closed 11 years ago

regdog commented 11 years ago

I have a class in a module as below. It runs into a error "Invalid Data: mongoid/comment" when user published the comment activity.

class Comment

Module Mongoid class Comment ... end end

class Activity

activity :new_comment do actor :user object :"Mongoid::Comment" target_object :community end

The class Comment has to have a namespace. How to solve the issue?

regdog commented 11 years ago

The issue is solved by set object :'mongoid/comment'.