Sha256: e2fac950b7583a4f25973a499510512f915fe174b630fa33ff8fcc2e499fb123
Contents?: true
Size: 545 Bytes
Versions: 20
Compression:
Stored size: 545 Bytes
Contents
require 'ecm/cms/database_resolver' module Ecm module Cms class PartialResolver < ::ActionView::Resolver require 'singleton' include Singleton # add shared behaviour for database backed templates include Ecm::Cms::DatabaseResolver def template_class 'Ecm::Cms::Partial' end def build_source(record) record.body end def normalize_basename(basename) '_' << basename end def resolve(partial_flag) partial_flag end end end end
Version data entries
20 entries across 20 versions & 1 rubygems