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

Version Path
cmor_cms-0.0.60.pre app/resolvers/cmor/cms/partial_resolver.rb
cmor_cms-0.0.59.pre app/resolvers/cmor/cms/partial_resolver.rb
cmor_cms-0.0.58.pre app/resolvers/cmor/cms/partial_resolver.rb
cmor_cms-0.0.57.pre app/resolvers/cmor/cms/partial_resolver.rb
cmor_cms-0.0.56.pre app/resolvers/cmor/cms/partial_resolver.rb
cmor_cms-0.0.55.pre app/resolvers/cmor/cms/partial_resolver.rb
cmor_cms-0.0.54.pre app/resolvers/cmor/cms/partial_resolver.rb
cmor_cms-0.0.53.pre app/resolvers/cmor/cms/partial_resolver.rb
cmor_cms-0.0.52.pre app/resolvers/cmor/cms/partial_resolver.rb
cmor_cms-0.0.51.pre app/resolvers/cmor/cms/partial_resolver.rb
cmor_cms-0.0.50.pre app/resolvers/cmor/cms/partial_resolver.rb
cmor_cms-0.0.49.pre app/resolvers/cmor/cms/partial_resolver.rb
cmor_cms-0.0.48.pre app/resolvers/cmor/cms/partial_resolver.rb
cmor_cms-0.0.45.pre app/resolvers/cmor/cms/partial_resolver.rb
cmor_cms-0.0.44.pre app/resolvers/cmor/cms/partial_resolver.rb
cmor_cms-0.0.43.pre app/resolvers/cmor/cms/partial_resolver.rb
cmor_cms-0.0.42.pre app/resolvers/cmor/cms/partial_resolver.rb
cmor_cms-0.0.41.pre app/resolvers/cmor/cms/partial_resolver.rb
cmor_cms-0.0.40.pre app/resolvers/cmor/cms/partial_resolver.rb