Class: Pageflow::Panorama::PageType
- Inherits:
-
Pageflow::PageType
- Object
- Pageflow::PageType
- Pageflow::Panorama::PageType
- Defined in:
- lib/pageflow/panorama/page_type.rb
Instance Method Summary collapse
- #file_types ⇒ Object
- #json_seed_template ⇒ Object
- #thumbnail_candidates ⇒ Object
- #view_helpers ⇒ Object
Instance Method Details
#file_types ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/pageflow/panorama/page_type.rb', line 12 def file_types [ FileType.new(model: Package, editor_partial: 'pageflow/panorama/editor/packages/package', top_level_type: true) ] end |
#json_seed_template ⇒ Object
20 21 22 |
# File 'lib/pageflow/panorama/page_type.rb', line 20 def json_seed_template 'pageflow/panorama/page_type.json.jbuilder' end |
#thumbnail_candidates ⇒ Object
24 25 26 27 28 29 |
# File 'lib/pageflow/panorama/page_type.rb', line 24 def thumbnail_candidates [ {attribute: 'thumbnail_image_id', file_collection: 'image_files'}, {attribute: 'panorama_package_id', file_collection: 'pageflow_panorama_packages'} ] end |
#view_helpers ⇒ Object
6 7 8 9 10 |
# File 'lib/pageflow/panorama/page_type.rb', line 6 def view_helpers [ Pageflow::Panorama::PackagesHelper ] end |