2005-08-15 21:17:32 +02:00
|
|
|
require 'diff'
|
|
|
|
class Revision < ActiveRecord::Base
|
|
|
|
belongs_to :page
|
|
|
|
composed_of :author, :mapping => [ %w(author name), %w(ip ip) ]
|
|
|
|
|
2005-09-09 07:31:27 +02:00
|
|
|
after_create :force_rendering
|
2005-08-15 21:17:32 +02:00
|
|
|
|
|
|
|
def force_rendering
|
2005-09-09 07:31:27 +02:00
|
|
|
PageRenderer.new(self).force_rendering
|
2005-08-15 21:17:32 +02:00
|
|
|
end
|
|
|
|
|
2005-08-09 04:20:28 +02:00
|
|
|
end
|