0
0
Fork 0

Adding views for the profile and entry pages

This commit is contained in:
Eugen Rochko 2016-02-26 20:48:20 +01:00
parent f16b31f077
commit 24646d5769
13 changed files with 177 additions and 7 deletions

View file

@ -2,4 +2,8 @@ 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