Class: StreamsController

Inherits:
ApplicationController show all
Defined in:
app/controllers/streams_controller.rb

Overview

Copyright © 2010-2011, Diaspora Inc. This file is

licensed under the Affero General Public License version 3 or later.  See
the COPYRIGHT file.

Instance Method Summary (collapse)

Instance Method Details

- (Object) activity



25
26
27
# File 'app/controllers/streams_controller.rb', line 25

def activity
  stream_responder(Stream::Activity)
end

- (Object) aspects



14
15
16
17
18
19
# File 'app/controllers/streams_controller.rb', line 14

def aspects
  aspect_ids = (session[:a_ids] || [])
  @stream = Stream::Aspect.new(current_user, aspect_ids,
                               :max_time => max_time)
  stream_responder
end

- (Object) commented



33
34
35
# File 'app/controllers/streams_controller.rb', line 33

def commented
  stream_responder(Stream::Comments)
end

- (Object) followed_tags



45
46
47
48
# File 'app/controllers/streams_controller.rb', line 45

def followed_tags
  gon.preloads[:tagFollowings] = tags
  stream_responder(Stream::FollowedTag)
end

- (Object) liked



37
38
39
# File 'app/controllers/streams_controller.rb', line 37

def liked
  stream_responder(Stream::Likes)
end

- (Object) mentioned



41
42
43
# File 'app/controllers/streams_controller.rb', line 41

def mentioned
  stream_responder(Stream::Mention)
end

- (Object) multi



29
30
31
# File 'app/controllers/streams_controller.rb', line 29

def multi
    stream_responder(Stream::Multi)
end

- (Object) public



21
22
23
# File 'app/controllers/streams_controller.rb', line 21

def public
  stream_responder(Stream::Public)
end