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

@ -9,6 +9,6 @@
- if @following.empty?
= render partial: 'nothing_here'
- else
= render partial: 'grid_card', collection: @following, as: :account
= render partial: 'grid_card', collection: @following, as: :account, cached: true
= will_paginate @following, pagination_options