Sha256: 102a5ec8381abf1f8af1a5419319211e6f6f773e98bdfe29285d63bcd51f0b40
Contents?: true
Size: 545 Bytes
Versions: 37
Compression:
Stored size: 545 Bytes
Contents
require 'cmor/cms/database_resolver' module Cmor module Cms class TemplateResolver < ::ActionView::Resolver require 'singleton' include Singleton # add shared behaviour for database backed templates include Cmor::Cms::DatabaseResolver def build_source(record) record.body end def normalize_basename(basename) basename end def resolve(partial_flag) !partial_flag end def template_class 'Cmor::Cms::Template' end end end end
Version data entries
37 entries across 37 versions & 1 rubygems