-
-
Save siassaj/c5e6b7bcf29be5e626a6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def batch_headers | |
data = @template.placeholders.map(&:value).join(',') | |
name = /(.*)\..*/.match(@template.name)[1] | |
send_data data, :filename => "#{name}.csv", type: :csv | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment