aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/caching
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2011-12-24 09:59:28 +0100
committerJosé Valim <jose.valim@gmail.com>2011-12-24 09:59:28 +0100
commite6bfcc21a8b1a139dacc8d6c957bc4ab3e55c3b6 (patch)
tree672b084b7146773269528db0c127c1aee37b8287 /actionpack/lib/action_controller/caching
parent39081f166023092041605144c87d7a6cd3b65102 (diff)
downloadrails-e6bfcc21a8b1a139dacc8d6c957bc4ab3e55c3b6.tar.gz
rails-e6bfcc21a8b1a139dacc8d6c957bc4ab3e55c3b6.tar.bz2
rails-e6bfcc21a8b1a139dacc8d6c957bc4ab3e55c3b6.zip
Remove unecessary config_accessors.
Diffstat (limited to 'actionpack/lib/action_controller/caching')
-rw-r--r--actionpack/lib/action_controller/caching/pages.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/actionpack/lib/action_controller/caching/pages.rb b/actionpack/lib/action_controller/caching/pages.rb
index 82b3c30f97..159f718029 100644
--- a/actionpack/lib/action_controller/caching/pages.rb
+++ b/actionpack/lib/action_controller/caching/pages.rb
@@ -42,20 +42,20 @@ module ActionController #:nodoc:
# For Rails, this directory has already been set to Rails.public_path (which is usually set to <tt>Rails.root + "/public"</tt>). Changing
# this setting can be useful to avoid naming conflicts with files in <tt>public/</tt>, but doing so will likely require configuring your
# web server to look in the new location for cached files.
- config_accessor :page_cache_directory
+ class_attribute :page_cache_directory
self.page_cache_directory ||= ''
# Most Rails requests do not have an extension, such as <tt>/weblog/new</tt>. In these cases, the page caching mechanism will add one in
# order to make it easy for the cached files to be picked up properly by the web server. By default, this cache extension is <tt>.html</tt>.
# If you want something else, like <tt>.php</tt> or <tt>.shtml</tt>, just set Base.page_cache_extension. In cases where a request already has an
# extension, such as <tt>.xml</tt> or <tt>.rss</tt>, page caching will not add an extension. This allows it to work well with RESTful apps.
- config_accessor :page_cache_extension
+ class_attribute :page_cache_extension
self.page_cache_extension ||= '.html'
# The compression used for gzip. If false (default), the page is not compressed.
# If can be a symbol showing the ZLib compression method, for example, :best_compression
# or :best_speed or an integer configuring the compression level.
- config_accessor :page_cache_compression
+ class_attribute :page_cache_compression
self.page_cache_compression ||= false
end