1 2 3 4 5 6 7
class Status < ActiveRecord::Base belongs_to :account, inverse_of: :statuses after_create do self.account.stream_entries.create!(activity: self) end end