Enable caching for some rabl views
This commit is contained in:
parent
aff22bfdb5
commit
0160d1d9b5
11 changed files with 38 additions and 32 deletions
|
@ -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 }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue