Skip to content

Instantly share code, notes, and snippets.

@tbarbugli
Created July 13, 2015 20:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tbarbugli/c334b979329fbd38e002 to your computer and use it in GitHub Desktop.
Save tbarbugli/c334b979329fbd38e002 to your computer and use it in GitHub Desktop.
def activity_notify
[feed_manager.get_feed('flat', 'global')]
end
@lorenjohnson
Copy link

This doesn't work actually, the code in the gem is

FeedManager#get_feed(feed_type, user_id) 

So it seems I need both the feed_type (feed_name?) and a user_id scope. This is what was confusing me originally and my code is throwing a "wrong number of arguments (3 for 2)" error when I try and do what you say.

Thoughts?

@tbarbugli
Copy link
Author

an instance of feed_manager is always available in the StreamRails namespace. StreamRails.feed_manager.get_feed should work

@lorenjohnson
Copy link

Ah, but I do get that. My question, and perhaps it's a confusion, is how do I identify a feed like "aggregated" without having to specify a user_id

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment