Class: Stream::Activity
- Inherits:
-
Base
- Object
- Base
- Stream::Activity
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
#link(opts = {}) ⇒ Object
2
3
4
|
# File 'lib/stream/activity.rb', line 2
def link(opts={})
Rails.application.routes.url_helpers.activity_streams_path(opts)
end
|
#order ⇒ Object
6
7
8
|
# File 'lib/stream/activity.rb', line 6
def order
"interacted_at"
end
|
#posts ⇒ ActiveRecord::Association<Post>
#title ⇒ Object
10
11
12
|
# File 'lib/stream/activity.rb', line 10
def title
I18n.translate("streams.activity.title")
end
|