Sha256: aa16aa20ba1bee626d35c790c7f0064b47c49b3ea1b9fbaa24f49903b0aebc5a
Contents?: true
Size: 648 Bytes
Versions: 5
Compression:
Stored size: 648 Bytes
Contents
require 'pageflow/vr/engine' module Pageflow module Vr PAGE_TYPE_THUMBNAIL_CANDIDATES = [ { attribute: 'thumbnail_image_id', file_collection: 'image_files' }, { attribute: 'video_id', file_collection: 'video_files' } ] def self.plugin Vr::Plugin.new end def self.page_type Pageflow::React.create_page_type('vr', thumbnail_candidates: PAGE_TYPE_THUMBNAIL_CANDIDATES) end def self.routes(router) router.instance_eval do mount Pageflow::Vr::Engine, at: '/pageflow_vr' end end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
pageflow-vr-1.4.0 | lib/pageflow-vr.rb |
pageflow-vr-1.3.0 | lib/pageflow-vr.rb |
pageflow-vr-1.2.0 | lib/pageflow-vr.rb |
pageflow-vr-1.1.0 | lib/pageflow-vr.rb |
pageflow-vr-1.0.0 | lib/pageflow-vr.rb |