Module: ActionTree::Components::Tilt::QueryMethods

Defined in:
lib/action_tree/components/tilt.rb

Instance Method Summary collapse

Instance Method Details

#templatesObject

Hash of templates like :name => [tmpl1, tmpl2, ...]



30
31
32
33
34
35
# File 'lib/action_tree/components/tilt.rb', line 30

def templates
  @templates ||= node_chain.inject({}) do |hsh, node|
    hsh[name] ||= []
    hsh[name] << node.templates[name]
  end
end