pagecontent/app/controllers/page_contents_controller.rb

9 lines
222 B
Ruby
Raw Normal View History

2014-05-06 09:20:15 +00:00
class PageContentsController < OrbitAdminController
def index
params = OrbitHelper.params
page = Page.where(:page_id => params[:page_id]).first
{
2014-07-15 09:48:28 +00:00
"html" => (page.page_contexts.last.content rescue "")
2014-05-06 09:20:15 +00:00
}
end
end