Changeset 7949
- Timestamp:
- 10/16/07 22:24:55 (1 year ago)
- Files:
-
- trunk/actionpack/CHANGELOG (modified) (1 diff)
- trunk/actionpack/lib/action_controller/caching.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/actionpack/CHANGELOG
r7947 r7949 1 1 *SVN* 2 3 * caches_page uses a single after_filter instead of one per action. #9891 [lifofifo] 2 4 3 5 * Update Prototype to 1.6.0_rc1 and script.aculo.us to 1.8.0 preview 0. [sam, madrobby] trunk/actionpack/lib/action_controller/caching.rb
r7726 r7949 101 101 def caches_page(*actions) 102 102 return unless perform_caching 103 actions.each do |action| 104 class_eval "after_filter { |c| c.cache_page if c.action_name == '#{action}' }" 105 end 103 actions = actions.map(&:to_s) 104 after_filter { |c| c.cache_page if actions.include?(c.action_name) } 106 105 end 107 106