0
0
Fork 0

Enable caching for some rabl views

This commit is contained in:
Eugen Rochko 2016-11-03 13:28:36 +01:00
parent aff22bfdb5
commit 0160d1d9b5
11 changed files with 38 additions and 32 deletions

View file

@ -2,7 +2,7 @@ class Favourite < ApplicationRecord
include Streamable
belongs_to :account, inverse_of: :favourites
belongs_to :status, inverse_of: :favourites
belongs_to :status, inverse_of: :favourites, touch: true
validates :status_id, uniqueness: { scope: :account_id }