demarches-normaliennes/app/models/procedure_detail.rb
2022-12-16 15:51:49 +01:00

9 lines
280 B
Ruby

class ProcedureDetail < OpenStruct
include SpreadsheetArchitect
def spreadsheet_columns
[:id, :libelle, :published_at, :aasm_state, :admin_count].map do |attribute|
[I18n.t(attribute, scope: 'activerecord.attributes.procedure_export'), attribute]
end
end
end