Sha256: 332fc9be718286d018c8ed516bbac2169d383f7eca3e2e71ffe0d90baa137507

Contents?: true

Size: 711 Bytes

Versions: 3

Compression:

Stored size: 711 Bytes

Contents

module Pageflow
  module Panorama
    class PageType < Pageflow::PageType
      name 'panorama'

      def view_helpers
        [
          Pageflow::Panorama::PackagesHelper
        ]
      end

      def file_types
        [
          FileType.new(model: Package,
                       editor_partial: 'pageflow/panorama/editor/packages/package')
        ]
      end

      def json_seed_template
        'pageflow/panorama/page_type.json.jbuilder'
      end

      def thumbnail_candidates
        [
          {attribute: 'thumbnail_image_id', file_collection: 'image_files'},
          {attribute: 'panorama_package_id', file_collection: 'pageflow_panorama_packages'}
        ]
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
pageflow-panorama-0.3.0 lib/pageflow/panorama/page_type.rb
pageflow-panorama-0.2.0 lib/pageflow/panorama/page_type.rb
pageflow-panorama-0.1.0 lib/pageflow/panorama/page_type.rb