Skip to content

Commit

Permalink
.each is superfluous on a find_each and invalidate_cached_urls is a p…
Browse files Browse the repository at this point in the history
…rivate method.
  • Loading branch information
parndt committed May 27, 2012
1 parent 2a7f4a3 commit 843346d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/app/models/refinery/page.rb
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ def expire_page_caching

def rebuild_with_invalidate_cached_urls!
rebuild_without_invalidate_cached_urls!
find_each.each(&:invalidate_cached_urls)
find_each { |page| page.send :invalidate_cached_urls }
end
alias_method_chain :rebuild!, :invalidate_cached_urls
end
Expand Down

0 comments on commit 843346d

Please sign in to comment.