app/helpers/admin/taggable_content_helper.rb
# Returns an Array that represents the taggable ministerial roles. Each
# element of the array consists of two values: the name of the ministerial
# role with the organisation and current holder and its ID.
Returns an Array that represents the taggable ministerial roles. Each
element of the array consists of two values: the name of the ministerial
role with the organisation and current holder and its ID.
Returns an Array that represents the taggable ministerial roles . Each element of the array consists of two values : the name of the ministerial role with the organisation and current holder and its ID .
def taggable_ministerial_roles_container
    Rails.cache.fetch(taggable_ministerial_roles_cache_digest, expires_in: 1.day) do
      MinisterialRole.with_translations.with_translations_for(:organisations).alphabetical_by_person.map do |role|
        ["#{role.name}, #{role.organisations.map(&:name).to_sentence} (#{role.current_person_name})", role.id]
      end
    end
  end
def taggable_ministerial_roles_container Rails . cache . fetch ( taggable_ministerial_roles_cache_digest , expires_in : 1 . day ) do MinisterialRole . with_translations . with_translations_for ( :organisations ) . alphabetical_by_person . map do | role | [ "#{role.name}, #{role.organisations.map(&:name).to_sentence} (#{role.current_person_name})" , role . id ] end end end
Returns an Array that represents the taggable ministerial roles.
Returns an Array that represents the taggable ministerial roles .