1
0
mirror of https://github.com/whippyshou/mastodon synced 2024-11-28 14:58:31 +09:00
whippy-edition/app/models/status.rb
2016-02-22 16:00:20 +01:00

8 lines
164 B
Ruby

class Status < ActiveRecord::Base
belongs_to :account, inverse_of: :statuses
after_create do
self.account.stream_entries.create!(activity: self)
end
end