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

Version Path
cmor_cms-0.0.39.pre app/resolvers/cmor/cms/template_resolver.rb
cmor_cms-0.0.38.pre app/resolvers/cmor/cms/template_resolver.rb
cmor_cms-0.0.37.pre app/resolvers/cmor/cms/template_resolver.rb
cmor_cms-0.0.36.pre app/resolvers/cmor/cms/template_resolver.rb
cmor_cms-0.0.35.pre app/resolvers/cmor/cms/template_resolver.rb
cmor_cms-0.0.34.pre app/resolvers/cmor/cms/template_resolver.rb
cmor_cms-0.0.33.pre app/resolvers/cmor/cms/template_resolver.rb
cmor_cms-0.0.32.pre app/resolvers/cmor/cms/template_resolver.rb
cmor_cms-0.0.31.pre app/resolvers/cmor/cms/template_resolver.rb
cmor_cms-0.0.30.pre app/resolvers/cmor/cms/template_resolver.rb
cmor_cms-0.0.29.pre app/resolvers/cmor/cms/template_resolver.rb
cmor_cms-0.0.28.pre app/resolvers/cmor/cms/template_resolver.rb
cmor_cms-0.0.27.pre app/resolvers/cmor/cms/template_resolver.rb
cmor_cms-0.0.26.pre app/resolvers/cmor/cms/template_resolver.rb
cmor_cms-0.0.25.pre app/resolvers/cmor/cms/template_resolver.rb
cmor_cms-0.0.24.pre app/resolvers/cmor/cms/template_resolver.rb
cmor_cms-0.0.22.pre app/resolvers/cmor/cms/template_resolver.rb
cmor_cms-0.0.21.pre app/resolvers/cmor/cms/template_resolver.rb
cmor_cms-0.0.20.pre app/resolvers/cmor/cms/template_resolver.rb
cmor_cms-0.0.19.pre app/resolvers/cmor/cms/template_resolver.rb