Class: Tzispa::Controller::Layout
- Includes:
- Helpers::Response
- Defined in:
- lib/tzispa/controller/layout.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Tzispa::Controller::Base
Instance Method Details
#render! ⇒ Object
14 15 16 17 18 |
# File 'lib/tzispa/controller/layout.rb', line 14 def render! rig = Tzispa::Rig::Engine.layout name: layout_name, domain: application.domain, content_type: context.router_params[:format] || config.default_format response.body << rig.render(context) content_type rig.content_type end |