Sha256: c35dfca4233ca88526708ca6fd451bfa0d04cb792fbeed066fd12e21b7b706af
Contents?: true
Size: 892 Bytes
Versions: 2
Compression:
Stored size: 892 Bytes
Contents
require "edition" require "expectant" class TransactionEdition < Edition include Expectant field :introduction, type: String field :will_continue_on, type: String field :link, type: String field :more_information, type: String field :alternate_methods, type: String GOVSPEAK_FIELDS = Edition::GOVSPEAK_FIELDS + [:introduction, :more_information, :alternate_methods] @fields_to_clone = [:introduction, :will_continue_on, :link, :more_information, :alternate_methods, :minutes_to_complete, :uses_government_gateway, :expectation_ids] def indexable_content "#{super} #{Govspeak::Document.new(introduction).to_text} #{Govspeak::Document.new(more_information).to_text}".strip end def whole_body [ self.link, self.introduction, self.more_information ].join("\n\n") end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
govuk_content_models-6.0.3 | app/models/transaction_edition.rb |
govuk_content_models-6.0.2 | app/models/transaction_edition.rb |