Class: Stream::Public
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
Instance Attribute Summary
Attributes inherited from Base
#max_time, #order, #publisher, #user
Instance Method Summary collapse
-
#aspects ⇒ Object
Override base class method.
- #link(opts = {}) ⇒ Object
-
#posts ⇒ ActiveRecord::Association<Post>
AR association of posts.
- #title ⇒ Object
Methods inherited from Base
#aspect, #for_all_aspects?, #initialize, #people, #post_from_group, #stream_posts
Constructor Details
This class inherits a constructor from Stream::Base
Instance Method Details
#aspects ⇒ Object
Override base class method
22 23 24 |
# File 'lib/stream/public.rb', line 22 def aspects ["public"] end |
#link(opts = {}) ⇒ Object
8 9 10 |
# File 'lib/stream/public.rb', line 8 def link(opts={}) Rails.application.routes.url_helpers.public_stream_path(opts) end |
#posts ⇒ ActiveRecord::Association<Post>
Returns AR association of posts.
17 18 19 |
# File 'lib/stream/public.rb', line 17 def posts @posts ||= Post.all_public end |
#title ⇒ Object
12 13 14 |
# File 'lib/stream/public.rb', line 12 def title I18n.translate("streams.public.title") end |