Sha256: cdde04277ca93f67c309cf615b7ec97a4a1b9e1535226b5d74c55933cd74901e
Contents?: true
Size: 511 Bytes
Versions: 19
Compression:
Stored size: 511 Bytes
Contents
module Cmor module Cms class PartialResolver < ::ActionView::Resolver require 'singleton' include Singleton # add shared behaviour for database backed templates include Cmor::Cms::DatabaseResolver def template_class 'Cmor::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
19 entries across 19 versions & 1 rubygems