Adding views for the profile and entry pages
This commit is contained in:
parent
f16b31f077
commit
24646d5769
13 changed files with 177 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue