use export template for admin archives
This commit is contained in:
parent
4a79ecf301
commit
be0c0311c5
1 changed files with 5 additions and 1 deletions
|
@ -34,7 +34,11 @@ module Administrateurs
|
||||||
private
|
private
|
||||||
|
|
||||||
def export_format
|
def export_format
|
||||||
@export_format ||= params[:export_format]
|
@export_format ||= params[:export_format].presence || export_template&.kind
|
||||||
|
end
|
||||||
|
|
||||||
|
def export_template
|
||||||
|
@export_template ||= ExportTemplate.find(params[:export_template_id]) if params[:export_template_id].present?
|
||||||
end
|
end
|
||||||
|
|
||||||
def export_options
|
def export_options
|
||||||
|
|
Loading…
Reference in a new issue