Module: Phlexible::Rails::AutoLayout
- Extended by:
- ActiveSupport::Concern
- Includes:
- Callbacks, ViewAssigns
- Defined in:
- lib/phlexible/rails/auto_layout.rb
Instance Method Summary collapse
Methods included from ViewAssigns
Instance Method Details
#around_template ⇒ Object
18 19 20 21 22 23 24 25 26 27 |
# File 'lib/phlexible/rails/auto_layout.rb', line 18 def around_template layout_class = controller_assigned_layout || self.class.resolved_layout if layout_class run_callbacks :layout do render(@layout = layout_class.new(self)) { super } end else super end end |