Module: Trailblazer::Cell::ViewName::Path

Included in:
Trailblazer::Cell
Defined in:
lib/trailblazer/cell.rb

Overview

View name is everything behind the last ‘Cell::`.

Comment::Cell::Theme::Sidebar => "theme/sidebar.haml"

Instance Method Summary collapse

Instance Method Details

#_view_nameObject



12
13
14
15
# File 'lib/trailblazer/cell.rb', line 12

def _view_name
  class_path = to_s.split("Cell::").last # E.g. Theme::SideBar
  util.underscore(class_path).downcase
end