aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2012-12-10 16:22:30 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2012-12-10 17:48:26 -0300
commit9cce1ea2fd02e8050350c4657e7cc7f1902b8694 (patch)
treee0df45bbb185069b959ed59976475aa580cb4e6c /activerecord/test/models
parent3142bf51ee7afff880b4eb837434dae874b47491 (diff)
downloadrails-9cce1ea2fd02e8050350c4657e7cc7f1902b8694.tar.gz
rails-9cce1ea2fd02e8050350c4657e7cc7f1902b8694.tar.bz2
rails-9cce1ea2fd02e8050350c4657e7cc7f1902b8694.zip
Allow users to choose the timestamp format in the cache key
This can be done using the class attribute cache_timestamp_format Conflicts: railties/guides/source/configuring.textile
Diffstat (limited to 'activerecord/test/models')
-rw-r--r--activerecord/test/models/developer.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/activerecord/test/models/developer.rb b/activerecord/test/models/developer.rb
index 1c048bb6b4..683cb54a10 100644
--- a/activerecord/test/models/developer.rb
+++ b/activerecord/test/models/developer.rb
@@ -234,3 +234,8 @@ class ThreadsafeDeveloper < ActiveRecord::Base
limit(1)
end
end
+
+class CachedDeveloper < ActiveRecord::Base
+ self.table_name = "developers"
+ self.cache_timestamp_format = :number
+end