diff options
author | Gareth Rees <gareth@mysociety.org> | 2014-05-08 16:07:19 +0100 |
---|---|---|
committer | Gareth Rees <gareth@mysociety.org> | 2014-06-06 11:09:09 +0100 |
commit | 468e9d5dfbbf2896b97553b8bf145acd0e8b95ca (patch) | |
tree | 763f69ba7c617bbb74bd2a9b933ae2a3589164bc /script/rails-deploy-before-down | |
parent | b2219112ad185d4e6b07ad439da9eabd4907e32d (diff) |
Extract public body CSV export to its own class
- SRP: Do one thing. PublicBodyCSV converts a
collection of bodies in to a CSV formatted
String
- Adds some parenthesis around parameters in
PublicBodyController#list_all_csv
- Let the controller handle what records to pull
out for the CSV export
Arguably this doesn't really need to be anything
to do with PublicBody, but it allows us to set
nice defaults.
Diffstat (limited to 'script/rails-deploy-before-down')
0 files changed, 0 insertions, 0 deletions