Module: Pageflow::CommonEntrySeedHelper Private
- Includes:
- ConfigHelper
- Included in:
- EntryJsonSeedHelper
- Defined in:
- app/helpers/pageflow/common_entry_seed_helper.rb
Overview
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Seed data that is used for published entires as well as editor display.
Defined Under Namespace
Classes: PageTypesSeed
Instance Method Summary collapse
Methods included from ConfigHelper
#config_file_model_types_seed, #config_file_url_templates_seed
Instance Method Details
#common_entry_seed(json, entry) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
9 10 11 12 13 14 15 16 17 18 19 |
# File 'app/helpers/pageflow/common_entry_seed_helper.rb', line 9 def common_entry_seed(json, entry) config = Pageflow.config_for(entry) json.locale entry.locale json.site entry.site.as_json(only: [:privacy_link_url]) json.enabled_feature_names entry.enabled_feature_names json.page_types PageTypesSeed.new(config).as_json json.file_url_templates { config_file_url_templates_seed(json, config) } json.file_model_types { config_file_model_types_seed(json, config) } end |