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 |
# File 'lib/pageflow/panorama/page_type.rb', line 12 def file_types [Panorama.package_file_type] end |
#json_seed_template ⇒ Object
16 17 18 |
# File 'lib/pageflow/panorama/page_type.rb', line 16 def json_seed_template 'pageflow/panorama/page_type.json.jbuilder' end |
#thumbnail_candidates ⇒ Object
20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/pageflow/panorama/page_type.rb', line 20 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 |