Module: Super::Partial::Resolving
- Included in:
- Layout, Super::Panel
- Defined in:
- lib/super/partial/resolving.rb
Class Method Summary collapse
Class Method Details
.resolve_for_rendering(template, partials, block) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/super/partial/resolving.rb', line 8 def resolve_for_rendering(template, partials, block) if block partials = [block.call, *parts] end partials = partials.map do |partial| if partial.is_a?(Symbol) template.instance_variable_get(partial) else partial end end partials.compact end |