diff options
author | Lachlan Sylvester <lachlan.sylvester@publicisfrontfoot.com.au> | 2015-08-28 15:31:54 +1000 |
---|---|---|
committer | Lachlan Sylvester <lachlan.sylvester@publicisfrontfoot.com.au> | 2015-08-28 17:26:09 +1000 |
commit | a9c6a583b6ed4b6482652f98c2aeda1a60268fc9 (patch) | |
tree | ca19b76ec44c64a52d95e4ee5a60a75f09a61935 /actionview/test/fixtures | |
parent | 93a4dfaebc48e3324997be780539fad996349c84 (diff) | |
download | rails-a9c6a583b6ed4b6482652f98c2aeda1a60268fc9.tar.gz rails-a9c6a583b6ed4b6482652f98c2aeda1a60268fc9.tar.bz2 rails-a9c6a583b6ed4b6482652f98c2aeda1a60268fc9.zip |
Fix calling cache helper with a relation
Diffstat (limited to 'actionview/test/fixtures')
-rw-r--r-- | actionview/test/fixtures/project.rb | 4 |
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 |