Created
March 11, 2011 07:33
-
-
Save ramontayag/865579 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class PageDrop < Liquid::Drop | |
include ActionView::Helpers::AssetTagHelper | |
include Rails.application.routes.url_helpers | |
include AlbumsHelper | |
include ImagesHelper | |
def initialize(page) | |
@page = page | |
end | |
def children | |
PagesDrop.new @page.children | |
end | |
def name | |
@page.name | |
end | |
def body | |
@page.body_with_tags | |
end | |
def published_at | |
@page.published_at | |
end | |
def parent | |
@page.parent | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment