| Class | UserVersion |
| In: |
app/models/user_version.rb
|
| Parent: | Version |
# File app/models/user_version.rb, line 21
21: def html=(h)
22: logger.debug("Saving HTML to #{self.path}")
23: f = File.new(self.path, "w")
24: f.puts(h)
25: f.close
26: # works on the file, we are using tidy lib
27: self.tidy if self.user_version?
28: h = self.html.gsub(Page::SHIM_TAG_PATTERN, Page::SHIM_TAG)
29: f = File.new(self.path, "w")
30: f.puts(h)
31: f.close
32: end