Class | UserVersion
In: | app/models/user_version.rb
Parent: | Version

Copyright (c) 2006 Logica

### Methods

html= path

### Public Instance methods

html=(h)

[Source]

        # 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

path()

[Source]

        # File app/models/user_version.rb, line 17
    17:   def path
    18:     return self.wiki.path + '/' + self.rel_path
    19:   end

[Validate]