Railsisms

Use some ActiveRecord convenience methods.
This commit is contained in:
Jacques Distler 2009-03-05 21:42:41 -06:00
parent 13d096c688
commit 6c0decc4ea
3 changed files with 6 additions and 6 deletions

View file

@ -8,7 +8,7 @@ module CacheSweepingHelper
end
def expire_cached_summary_pages(web)
categories = WikiReference.find(:all, :conditions => "link_type = 'C'")
categories = WikiReference.all(:conditions => "link_type = 'C'")
%w(recently_revised list).each do |action|
expire_action :controller => 'wiki', :web => web.address, :action => action
categories.each do |category|