DRY up event export menus

This commit is contained in:
James Mason 2018-02-22 21:15:27 -08:00
parent 0848df6948
commit 81bad2eb4d
3 changed files with 26 additions and 24 deletions

View file

@ -25,6 +25,7 @@ module Admin
@scheduled_event_distribution = @conference.scheduled_event_distribution
@file_name = "events_for_#{@conference.short_title}"
@event_export_option = params[:event_export_option]
@export_formats = [:pdf, :csv, :xlsx]
respond_to do |format|
format.html