Class: Stream::Activity

Inherits:
Base
  • Object
show all
Defined in:
lib/stream/activity.rb

Constant Summary

Constants inherited from Base

Base::TYPES_OF_POST_IN_STREAM

Instance Attribute Summary

Attributes inherited from Base

#max_time, #publisher, #user

Instance Method Summary collapse

Methods inherited from Base

#aspect, #aspect_ids, #aspects, #can_comment?, #contacts_link, #contacts_title, #for_all_aspects?, #initialize, #people, #post_from_group, #stream_posts

Constructor Details

This class inherits a constructor from Stream::Base

Instance Method Details


2
3
4
# File 'lib/stream/activity.rb', line 2

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

#orderObject


6
7
8
# File 'lib/stream/activity.rb', line 6

def order
  "interacted_at"
end

#postsActiveRecord::Association<Post>


15
16
17
# File 'lib/stream/activity.rb', line 15

def posts
  @posts ||= EvilQuery::Participation.new(user).posts
end

#titleObject


10
11
12
# File 'lib/stream/activity.rb', line 10

def title
  I18n.translate("streams.activity.title")
end