about summary refs log tree commit diff
path: root/app/models/concerns
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-12-03 18:21:26 +0100
committerEugen Rochko <eugen@zeonfederated.com>2016-12-03 18:21:26 +0100
commit816284d73924ceb453c76d571bcb315be91b2b08 (patch)
tree2fbf97bed916b582600e333c591d74c40f308111 /app/models/concerns
parent253970cb736a4da29229b930a0af32ead7e5d99b (diff)
Fix #248 - Reload all accounts when fetching from cache
Diffstat (limited to 'app/models/concerns')
-rw-r--r--app/models/concerns/cacheable.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/concerns/cacheable.rb b/app/models/concerns/cacheable.rb
index cd0167048..51451d260 100644
--- a/app/models/concerns/cacheable.rb
+++ b/app/models/concerns/cacheable.rb
@@ -11,5 +11,6 @@ module Cacheable
 
   included do
     scope :with_includes, -> { includes(@cache_associated) }
+    scope :cache_ids, -> { select(:id, :updated_at) }
   end
 end