Extacted rendering logic from the model
This commit is contained in:
parent
acfae2818c
commit
427f989d69
19 changed files with 550 additions and 525 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue