blob: c54a5fab349183317380f374d839028d3c48a5e1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
|
class User < ActiveRecord::Base
belongs_to :account, inverse_of: :user
validates :account, presence: true
def timeline
StreamEntry.where(account_id: self.account.following, activity_type: 'Status').order('id desc')
end
end
|