Module: ActionTree::Plugins::Tilt::MatchMixin
- Defined in:
- lib/action_tree/plugins/tilt.rb
Instance Method Summary collapse
Instance Method Details
#layout(namespace = nil) ⇒ Object
32 33 34 35 36 |
# File 'lib/action_tree/plugins/tilt.rb', line 32 def layout(namespace=nil) inherit_via_node_chain do |node| node.layout_namespaces[namespace] end end |
#view_path ⇒ Object
28 29 30 |
# File 'lib/action_tree/plugins/tilt.rb', line 28 def view_path inherit_via_node_chain(&:view_path) || '.' end |