I've just started playing with the stream-rails gem
, and have the flat and user feeds working more or less.
One of my models is being made into an activity when an instance is created - even
though my activity_should_sync
? is implemented to return false.
It seems anything inside this method is not run at all, including puts. Appreciate any advice
class Post < ActiveRecord::Base
...
include StreamRails::Activity
as_activity
def activity_should_sync?
false
end
def activity_object
self
end
The activity_should_sync?
method is not released in the latest gem yet (upcoming 2.4). The 2.4 gem will be released on rubygems next week. In the meantime you can install the latest version from Github directly.