module SocialStream
Provides your Rails application with social network and activity stream support
Public Class Methods
objects()
click to toggle source
# File lib/social_stream/base.rb, line 144 def objects @@objects.push(:actor) unless @@objects.include?(:actor) @@objects end
profile_subject_keys()
click to toggle source
An array of the keys that must be tried when searching for a profile subject
# File lib/social_stream/base.rb, line 139 def profile_subject_keys @profile_subject_keys ||= routed_subjects.map{ |s| s.to_s.split('/').last } end
routed_subjects()
click to toggle source
All the subjects that appear in routes and can be accessed through the browser / API
# File lib/social_stream/base.rb, line 133 def routed_subjects @@routed_subjects ||= subjects.dup end
setup() { |self| ... }
click to toggle source
# File lib/social_stream/base.rb, line 127 def setup yield self end