Sha256: 0baccd9562b9a6ef80c337041f6547014708045626ed2f1fe1c14798e2cb383d
Contents?: true
Size: 510 Bytes
Versions: 5
Compression:
Stored size: 510 Bytes
Contents
class Cell::Concept < Cell::ViewModel abstract! self.view_paths = ["app/concepts"] # TODO: this should be in Helper or something. this should be the only entry point from controller/view. class << self def class_from_cell_name(name) name.classify.constantize end def controller_path @controller_path ||= name.sub(/::Cell/, '').underscore end end def concept(name, *args, &block) self.class.cell(name, parent_controller, *args, &block) end self_contained! end
Version data entries
5 entries across 5 versions & 2 rubygems