Skip to content

Commit

Permalink
Users CSV include chapter slug if downloading chapter user list
Browse files Browse the repository at this point in the history
  • Loading branch information
jcn committed Jun 8, 2024
1 parent d4ceefb commit 2fd5479
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/controllers/users_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ def index
@users = @users.paginate(page: params[:page], per_page: 250)
end
format.csv do
headers["Content-Disposition"] = "attachment; filename=#{current_chapter.slug}_users.csv" if current_chapter.present?
end
end
end
Expand Down

0 comments on commit 2fd5479

Please sign in to comment.