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

Version Path
ecm_cms2-5.1.2 lib/ecm/cms/resolvers/ecm/cms/partial_resolver.rb
ecm_cms2-5.1.1 lib/ecm/cms/resolvers/ecm/cms/partial_resolver.rb
ecm_cms2-5.1.0 lib/ecm/cms/resolvers/ecm/cms/partial_resolver.rb
ecm_cms2-5.0.0 lib/ecm/cms/resolvers/ecm/cms/partial_resolver.rb
ecm_cms2-4.1.1 lib/ecm/cms/resolvers/ecm/cms/partial_resolver.rb
ecm_cms2-4.1.0 lib/ecm/cms/resolvers/ecm/cms/partial_resolver.rb
ecm_cms2-4.0.1 lib/ecm/cms/resolvers/ecm/cms/partial_resolver.rb
ecm_cms2-4.0.0 lib/ecm/cms/resolvers/ecm/cms/partial_resolver.rb
ecm_cms2-3.0.3 lib/ecm/cms/resolvers/ecm/cms/partial_resolver.rb
ecm_cms2-3.0.2 lib/ecm/cms/resolvers/ecm/cms/partial_resolver.rb
ecm_cms2-3.0.1 lib/ecm/cms/resolvers/ecm/cms/partial_resolver.rb
ecm_cms2-3.0.0 lib/ecm/cms/resolvers/ecm/cms/partial_resolver.rb
ecm_cms2-2.1.4 lib/ecm/cms/resolvers/ecm/cms/partial_resolver.rb
ecm_cms2-2.1.3 lib/ecm/cms/resolvers/ecm/cms/partial_resolver.rb
ecm_cms2-2.1.2 lib/ecm/cms/resolvers/ecm/cms/partial_resolver.rb
ecm_cms2-2.1.1 lib/ecm/cms/resolvers/ecm/cms/partial_resolver.rb
ecm_cms2-2.1.0 lib/ecm/cms/resolvers/ecm/cms/partial_resolver.rb
ecm_cms2-2.0.4 lib/ecm/cms/resolvers/ecm/cms/partial_resolver.rb
ecm_cms2-2.0.3 lib/ecm/cms/resolvers/ecm/cms/partial_resolver.rb
ecm_cms2-2.0.2 lib/ecm/cms/resolvers/ecm/cms/partial_resolver.rb