tap/app/controllers/admins_controller.rb
2015-01-06 20:18:01 +01:00

14 lines
341 B
Ruby

require 'csv'
class AdminsController < ApplicationController
def schulden
authorize! :schulden, :admins
@users = User.members
respond_to do |format|
format.csv do
headers['Content-Disposition'] = "attachment; filename=\"zeus-schulden\""
headers['Content-Type'] ||= 'text/csv'
end
end
end
end