Closed regdog closed 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.
Module Mongoid class Comment ... end end
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?
The issue is solved by set object :'mongoid/comment'.
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?