Sha256: 5841525fa5f3b094611efca9ff1643ee609787bca6bf13b98a02f7180a4012b9

Contents?: true

Size: 771 Bytes

Versions: 1

Compression:

Stored size: 771 Bytes

Contents

module Pageflow
  module Chart
    class PageType < Pageflow::PageType
      name 'chart'

      def view_helpers
        [ScrapedSitesHelper]
      end

      def json_seed_template
        'pageflow/chart/page_type'
      end

      def file_types
        [Chart.scraped_site_file_type]
      end
    end

    def self.scraped_site_file_type
      FileType.new(model: ScrapedSite,
                   editor_partial: 'pageflow/chart/editor/scraped_sites/scraped_site',
                   custom_attributes: {
                     url: {
                       permitted_create_param: true
                     },
                     use_custom_theme: {
                       permitted_create_param: false
                     }
                   })
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pageflow-chart-2.6.0 lib/pageflow/chart/page_type.rb