Extacted rendering logic from the model

This commit is contained in:
Alexey Verkhovsky 2005-09-09 05:31:27 +00:00
parent acfae2818c
commit 427f989d69
19 changed files with 550 additions and 525 deletions

View file

@ -78,4 +78,8 @@ module ApplicationHelper
date.sec).strftime("%B %e, %Y %H:%M:%S")
end
def rendered_content(page)
PageRenderer.new(page.revisions.last).display_content
end
end