Browse Source

Expire pages

master
Peter J. Jones 11 years ago
parent
commit
f6d4005fb0
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      app/models/comment.rb

+ 1
- 0
app/models/comment.rb View File

@@ -61,6 +61,7 @@ class Comment < ActiveRecord::Base
if comment = find(:first, :conditions => conditions)
comment.approved = true
comment.save!
comment.banter.expire_cache if comment.banter.respond_to?(:expire_cache)
comment
end
end

Loading…
Cancel
Save