mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Merge pull request #3252 from avakhov/p-remove-expire_page-dup
Remove unnecessary dup in expire_page
This commit is contained in:
@@ -122,7 +122,7 @@ module ActionController #:nodoc:
|
||||
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user