12 lines
214 B
Ruby
12 lines
214 B
Ruby
class Admin::NewslettersController < Admin::BaseController
|
|
|
|
def index
|
|
end
|
|
|
|
def users
|
|
zip = NewsletterZip.new('emails')
|
|
zip.create
|
|
send_file(File.join(zip.path), type: 'application/zip')
|
|
end
|
|
|
|
end |