2007-01-22 07:43:50 -06:00
|
|
|
class Revision < ActiveRecord::Base
|
|
|
|
belongs_to :page
|
|
|
|
composed_of :author, :mapping => [ %w(author name), %w(ip ip) ]
|
2010-01-06 08:15:34 -06:00
|
|
|
|
|
|
|
def content
|
|
|
|
read_attribute(:content).as_utf8
|
|
|
|
end
|
2007-01-22 07:43:50 -06:00
|
|
|
end
|