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, #aspect_ids, #aspects, #can_comment?, #contacts_link, #for_all_aspects?, #initialize, #people, #post_from_group, #stream_posts

Constructor Details

This class inherits a constructor from Stream::Base

Instance Method Details

#contacts_titleObject


20
21
22
# File 'lib/stream/followed_tag.rb', line 20

def contacts_title
  I18n.translate('streams.followed_tag.contacts_title')
end

7
8
9
# File 'lib/stream/followed_tag.rb', line 7

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

#postsActiveRecord::Association<Post>


16
17
18
# File 'lib/stream/followed_tag.rb', line 16

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

#titleObject


11
12
13
# File 'lib/stream/followed_tag.rb', line 11

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