Class: Stream::FollowedTag

Inherits:
Base
  • Object
show all
Defined in:
lib/stream/followed_tag.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.

Constant Summary

Constants inherited from Base

Base::TYPES_OF_POST_IN_STREAM

Instance Attribute Summary

Attributes inherited from Base

#max_time, #order, #publisher, #user

Instance Method Summary collapse

Methods inherited from Base

#aspect, #aspects, #can_comment?, #for_all_aspects?, #initialize, #people, #post_from_group, #stream_posts

Constructor Details

This class inherits a constructor from Stream::Base

Instance Method Details


9
10
11
# File 'lib/stream/followed_tag.rb', line 9

def link(opts={})
  Rails.application.routes.url_helpers.tag_followings_path(opts)
end

#postsActiveRecord::Association<Post>

Returns AR association of posts.

Returns:

  • (ActiveRecord::Association<Post>)

    AR association of posts


18
19
20
# File 'lib/stream/followed_tag.rb', line 18

def posts
  @posts ||= StatusMessage.user_tag_stream(user, tag_ids)
end

#titleObject


13
14
15
# File 'lib/stream/followed_tag.rb', line 13

def title
  I18n.t('streams.followed_tag.title')
end