Railsisms
Use some ActiveRecord convenience methods.
This commit is contained in:
parent
13d096c688
commit
6c0decc4ea
3 changed files with 6 additions and 6 deletions
|
@ -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|
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue