mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
parent
87144caeb3
commit
ae98ac1430
8 changed files with 8 additions and 8 deletions
|
|
@ -24,7 +24,7 @@ module Admin
|
|||
|
||||
respond_to do |format|
|
||||
format.html
|
||||
# Explicity call #to_json to avoid the use of EventSerializer
|
||||
# Explicitly call #to_json to avoid the use of EventSerializer
|
||||
format.json { render json: Event.where(state: :confirmed, program: @program).to_json }
|
||||
format.xlsx do
|
||||
response.headers['Content-Disposition'] = "attachment; filename=\"#{@file_name}.xlsx\""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue