Sha256: 838c2a9b52c836027fc804d0546d5195a463db8292425fe9dd2af56c5ff51e4b
Contents?: true
Size: 644 Bytes
Versions: 10
Compression:
Stored size: 644 Bytes
Contents
require "cell/self_contained" module Cell # Cell::Concept is no longer under active development. Please switch to Trailblazer::Cell. class Concept < Cell::ViewModel abstract! self.view_paths = ["app/concepts"] extend SelfContained # 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) util.constant_for(name) end def controller_path @controller_path ||= util.underscore(name.sub(/(::Cell$|Cell::)/, '')) end end alias_method :concept, :cell self_contained! end end
Version data entries
10 entries across 10 versions & 1 rubygems