adjusting to work with 3.0
Oleg
committed Oct 28, 2011
commit ab6384c50737e87db406629771b1487a4faed842
Showing 1
changed file with
1 additions
and 1 deletions
app/models/cms/file.rb
+1
-1
| @@ | @@ -51,7 +51,7 @@ protected |
| def reload_page_cache | |
| return unless self.block | |
| p = self.block.page | |
| - | p.update_column(:content, p.content(true)) |
| + | Cms::Page.where(:id => p.id).update_all(:content => p.content(true)) |
| end | |
| end | |