Class: Cell::Concept
- Extended by:
- SelfContained
- Defined in:
- lib/cell/concept.rb
Overview
Cell::Concept is no longer under active development. Please switch to Trailblazer::Cell.
Instance Attribute Summary
Attributes inherited from ViewModel
Class Method Summary collapse
Methods included from SelfContained
Methods inherited from ViewModel
call, #cell, #context, #initialize, property, templates, #to_s
Methods included from Abstract
Methods included from Util
Methods included from ViewModel::Helpers
Methods included from ViewModel::Layout
Methods included from ViewModel::ProcessOptions
Methods included from ViewModel::TemplateFor
Methods included from Caching
#cache?, #cache_store, included, #render_state
Methods included from ViewModel::Rendering
Methods included from Prefixes
Constructor Details
This class inherits a constructor from Cell::ViewModel
Class Method Details
.class_from_cell_name(name) ⇒ Object
12 13 14 |
# File 'lib/cell/concept.rb', line 12 def class_from_cell_name(name) util.constant_for(name) end |
.controller_path ⇒ Object
16 17 18 |
# File 'lib/cell/concept.rb', line 16 def controller_path @controller_path ||= util.underscore(name.sub(/(::Cell$|Cell::)/, '')) end |