about summary refs log tree commit diff
path: root/app/models/follow.rb
blob: eec01b9ba2a61512d146028d8f3f11afbda6d1a4 (plain) (blame)
1
2
3
4
5
6
7
8
class Follow < ActiveRecord::Base
  belongs_to :account
  belongs_to :target_account, class_name: 'Account'

  after_create do
    self.account.stream_entries.create!(activity: self)
  end
end