Class: Alchemy::PageVersion

Inherits:
BaseRecord
  • Object
show all
Includes:
Publishable
Defined in:
app/models/alchemy/page_version.rb

Constant Summary collapse

METADATA_ATTRIBUTES =

Metadata attributes that are versioned (moved from Page)

%w[
  title
  meta_description
  meta_keywords
].freeze

Constants included from SearchableResource

SearchableResource::SEARCHABLE_COLUMN_TYPES

Instance Method Summary collapse

Methods included from Publishable

#already_public_for?, #public?, #publishable?, #scheduled?, #still_public_for?

Methods included from ConfigMissing

#const_missing

Methods included from SearchableResource

#ransackable_associations, #ransackable_attributes, #ransackable_scopes, #ransortable_attributes

Instance Method Details

#element_repositoryObject



32
33
34
# File 'app/models/alchemy/page_version.rb', line 32

def element_repository
  ElementsRepository.new(elements)
end