Class: Cell::Concept

Inherits:
ViewModel show all
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

#model

Class Method Summary collapse

Methods included from SelfContained

self_contained!

Methods inherited from ViewModel

call, #cell, #context, #initialize, property, templates, #to_s

Methods included from Abstract

#abstract!, #abstract?

Methods included from Util

#util

Methods included from ViewModel::Helpers

#cell

Methods included from ViewModel::Layout

included

Methods included from ViewModel::ProcessOptions

#process_options!

Methods included from ViewModel::TemplateFor

#find_template, #template_for

Methods included from Caching

#cache?, #cache_store, included, #render_state

Methods included from ViewModel::Rendering

#call, #render, #show

Methods included from Prefixes

#_prefixes, included

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_pathObject



16
17
18
# File 'lib/cell/concept.rb', line 16

def controller_path
  @controller_path ||= util.underscore(name.sub(/(::Cell$|Cell::)/, ''))
end