Method: Cell::ViewModel::TemplateFor#template_for
- Defined in:
- lib/cell/view_model.rb
#template_for(prefixes, view, options) ⇒ Object
170 171 172 173 174 |
# File 'lib/cell/view_model.rb', line 170 def template_for(prefixes, view, ) # we could also pass _prefixes when creating class.templates, because prefixes are never gonna change per instance. not too sure if i'm just assuming this or if people need that. # Note: options here is the template-relevant options, only. self.class.templates[prefixes, view, ] end |