class Trailblazer::Generator::Cell
Public Class Methods
controller_path()
click to toggle source
# File lib/trailblazer/generator/cell.rb, line 16 def self.controller_path util.underscore(name.sub(/Cell$/, '')).split("/")[-1] end
Public Instance Methods
action_class()
click to toggle source
# File lib/trailblazer/generator/cell.rb, line 29 def action_class Trailblazer::Generator::Inflector.camelize(action) end
show()
click to toggle source
# File lib/trailblazer/generator/cell.rb, line 23 def show render action rescue ::Cell::TemplateMissingError render :generic end
underscore_name()
click to toggle source
# File lib/trailblazer/generator/cell.rb, line 33 def underscore_name Trailblazer::Generator::Inflector.underscore(name) end