Class: Trailblazer::Generator::Cell
- Inherits:
-
Cell::ViewModel
- Object
- Cell::ViewModel
- Trailblazer::Generator::Cell
show all
- Extended by:
- ClassMethods
- Includes:
- Cell::Erb
- Defined in:
- lib/trailblazer/generator/cell.rb
Defined Under Namespace
Modules: ClassMethods
Class Method Summary
collapse
Instance Method Summary
collapse
build_model
Class Method Details
.controller_path ⇒ Object
16
17
18
|
# File 'lib/trailblazer/generator/cell.rb', line 16
def self.controller_path
util.underscore(name.sub(/Cell$/, '')).split("/")[-1]
end
|
Instance Method Details
#show ⇒ Object
23
24
25
26
27
|
# File 'lib/trailblazer/generator/cell.rb', line 23
def show
render action
rescue ::Cell::TemplateMissingError
render :generic
end
|
#underscore_name ⇒ Object