Permalink
Browse files

Merge pull request #3252 from avakhov/p-remove-expire_page-dup

Remove unnecessary dup in expire_page
  • Loading branch information...
2 parents 7f64e47 + a4515b6 commit cf92e41513c0e7ffd9b04b86f0925e91f9e08ae6 @josevalim josevalim committed Oct 8, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_controller/caching/pages.rb
View
2 actionpack/lib/action_controller/caching/pages.rb
@@ -122,7 +122,7 @@ def expire_page(options = {})
if options.is_a?(Hash)
if options[:action].is_a?(Array)
- options[:action].dup.each do |action|
+ options[:action].each do |action|
self.class.expire_page(url_for(options.merge(:only_path => true, :action => action)))
end
else

0 comments on commit cf92e41

Please sign in to comment.