Sha256: 0bd9a78b5e55771929654b94f0545f8f67e287f72d3325f57edc40ab6bb5e3f0
Contents?: true
Size: 496 Bytes
Versions: 3
Compression:
Stored size: 496 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 ||= util.underscore(name.sub(/::Cell/, '')) end end alias_method :concept, :cell # the #cell helper to instantiate cells in cells. self_contained! end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
cells-4.0.0.rc1 | lib/cell/concept.rb |
cells-4.0.0.beta6 | lib/cell/concept.rb |
cells-4.0.0.beta5 | lib/cell/concept.rb |