Class: Page
- Inherits:
-
ApplicationRecord
- Object
- ApplicationRecord
- Page
- Includes:
- Trek::Contentable, Trek::Formattable, Trek::Fragmentable, Trek::Keyable, Trek::Orderable, Trek::Pages::Pathable, Trek::Pages::Scopes, Trek::Pages::SearchEngineOptimizable, Trek::Pages::Versionable, Trek::Sectionable, Trek::Sluggable, Trek::Translatable
- Defined in:
- lib/generators/trek/templates/models/page.rb
Overview
‘Page` represents a page on the website. By default, it includes all Trek model concerns, but you can disable the ones you don’t need.
Constant Summary
Constants included from Trek::Sectionable
Trek::Sectionable::SECTIONS, Trek::Sectionable::SECTION_NAMES
Constants included from Trek::Formattable
Instance Method Summary collapse
Methods included from Trek::Pages::Versionable
#create_current_version_from_page!, #current_content, #current_image, #current_image_url, #current_sections, #current_version, #current_version=
Methods included from Trek::Pages::SearchEngineOptimizable
#default_seo_value, #meta_tags, #seo_values
Methods included from Trek::Pages::Pathable
#full_path, #full_path_from_tree
Methods included from Trek::Fragmentable
#fragments, #fragments_attributes=
Methods included from Trek::Contentable
#content_text, #formatted_content, #parsed_content, #prosemirror_content?
Instance Method Details
#to_s ⇒ Object
37 38 39 |
# File 'lib/generators/trek/templates/models/page.rb', line 37 def to_s title end |