diaspora/lib/stream/activity.rb
2017-09-17 19:29:15 +02:00

20 lines
No EOL
415 B
Ruby

# frozen_string_literal: true
class Stream::Activity < Stream::Base
def link(opts={})
Rails.application.routes.url_helpers.activity_streams_path(opts)
end
def order
"interacted_at"
end
def title
I18n.translate("streams.activity.title")
end
# @return [ActiveRecord::Association<Post>] AR association of posts
def posts
@posts ||= EvilQuery::Participation.new(user).posts
end
end