Sha256: 86afadcde6a5585bd19ffd53cdfc3c094877cd020d63cf1304345038b1fe29cc
Contents?: true
Size: 294 Bytes
Versions: 3
Compression:
Stored size: 294 Bytes
Contents
module Pwb class Export::WebsiteController < ApplicationApiController def all @website = Website.unique_instance headers['Content-Disposition'] = "attachment; filename=\"pwb-website.csv\"" headers['Content-Type'] ||= 'text/csv' render "all.csv" end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
pwb-1.0.0 | app/controllers/pwb/export/website_controller.rb |
pwb-0.1.1 | app/controllers/pwb/export/website_controller.rb |
pwb-0.1.0 | app/controllers/pwb/export/website_controller.rb |