Class: Xhive::PageCell
- Inherits:
-
Cell::Base
- Object
- Cell::Base
- Xhive::PageCell
- Defined in:
- app/cells/xhive/page_cell.rb
Instance Method Summary collapse
Instance Method Details
#inline(params) ⇒ Object
3 4 5 6 7 |
# File 'app/cells/xhive/page_cell.rb', line 3 def inline(params) site = params[:site].present? ? Xhive::Site.find(params[:site]) : Xhive::Site.first page = site.pages.find(params[:id]) page.present_content(params) end |