Added EmailsDownload controller and routes

Removed original method to return emails file from Newsletters controller and NewsletterZip class, included `rubyzip` gem that's no longer necessary.
This commit is contained in:
María Checa
2018-02-15 16:23:23 +01:00
committed by Bertocq
parent 1c653a7096
commit cb15a2e25b
5 changed files with 22 additions and 32 deletions

View File

@@ -149,6 +149,10 @@ namespace :admin do
get :users, on: :collection
end
resources :emails_download, only: :index do
get :generate_csv, on: :collection
end
resource :stats, only: :show do
get :proposal_notifications, on: :collection
get :direct_messages, on: :collection