0
0
Fork 0

Adding a test for ReblogService, fixing mentions for remote statuses

This commit is contained in:
Eugen Rochko 2016-02-28 21:22:56 +01:00
parent 47d50b0e39
commit 11ff92c9d7
10 changed files with 82 additions and 26 deletions

View file

@ -1,6 +1,6 @@
class Mention < ActiveRecord::Base
belongs_to :account, inverse_of: :mentions
belongs_to :status, inverse_of: :mentions
belongs_to :status
validates :account, :status, presence: true
validates :account, uniqueness: { scope: :status }