aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/test/fixtures/project.rb
diff options
context:
space:
mode:
Diffstat (limited to 'actionview/test/fixtures/project.rb')
-rw-r--r--actionview/test/fixtures/project.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/actionview/test/fixtures/project.rb b/actionview/test/fixtures/project.rb
index c124a9e605..404b12cbab 100644
--- a/actionview/test/fixtures/project.rb
+++ b/actionview/test/fixtures/project.rb
@@ -1,3 +1,7 @@
class Project < ActiveRecord::Base
has_and_belongs_to_many :developers, -> { uniq }
+
+ def self.collection_cache_key(collection = all, timestamp_column = :updated_at)
+ "projects-#{collection.count}"
+ end
end