Created
July 13, 2015 20:15
-
-
Save tbarbugli/c334b979329fbd38e002 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def activity_notify | |
[feed_manager.get_feed('flat', 'global')] | |
end |
an instance of feed_manager is always available in the StreamRails namespace. StreamRails.feed_manager.get_feed should work
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
This doesn't work actually, the code in the gem is
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?