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) ]
|
2010-01-06 15:15:34 +01:00
|
|
|
|
|
|
|
def content
|
|
|
|
read_attribute(:content).as_utf8
|
|
|
|
end
|
2007-01-22 14:43:50 +01:00
|
|
|
end
|