instiki/app/models/revision.rb

9 lines
183 B
Ruby
Raw Normal View History

2007-01-22 14:43:50 +01:00
class Revision < ActiveRecord::Base
belongs_to :page
composed_of :author, :mapping => [ %w(author name), %w(ip ip) ]
def content
read_attribute(:content).as_utf8
end
2007-01-22 14:43:50 +01:00
end