Class: CampaignEdition

Inherits:
Edition show all
Includes:
Attachable
Defined in:
app/models/campaign_edition.rb

Constant Summary collapse

GOVSPEAK_FIELDS =
Edition::GOVSPEAK_FIELDS + [:body]
BRAND_COLOURS =
[
  "attorney-generals-office",
  "cabinet-office",
  "department-for-business-innovation-skills",
  "department-for-communities-and-local-government",
  "department-for-culture-media-sport",
  "department-for-education",
  "department-for-environment-food-rural-affairs",
  "department-for-international-development",
  "department-for-transport",
  "department-for-work-pensions",
  "department-of-energy-climate-change",
  "department-of-health",
  "foreign-commonwealth-office",
  "hm-government",
  "hm-revenue-customs",
  "hm-treasury",
  "home-office",
  "ministry-of-defence",
  "ministry-of-justice",
  "northern-ireland-office",
  "office-of-the-advocate-general-for-scotland",
  "office-of-the-leader-of-the-house-of-lords",
  "scotland-office",
  "the-office-of-the-leader-of-the-house-of-commons",
  "uk-export-finance",
  "uk-trade-investment",
  "wales-office"
]
CRESTS =
{
  "No identity" => "no-identity",
  "Single identity" => "single-identity",
  "Department for Business, Innovation and Skills" => "bis",
  "Scotland Office" => "so",
  "Home Office" => "ho",
  "Ministry of Defence" => "mod",
  "Wales Office" => "wales",
  "HM Coastguard" => "coastguard",
  "Portcullis" => "portcullis",
  "UK Hydrographic Office" => "ukho",
  "Executive Office" => "eo",
  "HM Revenue and Customs" => "hmrc",
  "UK Atomic Energy Authority" => "ukaea"
}

Instance Method Summary collapse

Methods included from Attachable

asset_api_client, asset_api_client=, included

Methods inherited from Edition

#artefact, #broadcast_action, #build_clone, #can_create_new_edition?, #check_for_archived_artefact, #destroy_artefact, #fields_to_copy, find_and_identify, find_or_create_from_panopticon_data, #first_edition_of_published, #format, #format_name, #get_next_version_number, #has_ever_been_published?, #has_sibling_in_progress?, #has_video?, #history, #in_progress_sibling, #indexable_content, #indexable_content_with_parts, #indexable_content_without_parts, #latest_change_note, #latest_edition?, #latest_major_update, #major_updates_in_series, #meta_data, #panopticon_uri, #previous_published_edition, #previous_siblings, #public_updated_at, #published_edition, #safe_to_preview?, #series, #siblings, #subsequent_siblings, #update_slug_from_artefact, #was_published

Methods included from Workflow

#can_destroy?, #check_can_delete_and_notify, #denormalise_users!, #error_description, #fact_checked?, #important_note, #in_progress?, #locked_for_edits?, #mark_as_rejected, #notify_siblings_of_new_edition, #perform_event_without_validations, #previous_edition, #status_text

Instance Method Details

#whole_bodyObject



69
70
71
# File 'app/models/campaign_edition.rb', line 69

def whole_body
  self.body
end