aboutsummaryrefslogtreecommitdiffstats
path: root/app/models
Commit message (Collapse)AuthorAgeLines
...
| * Remove now-unused OutgoingMessage#send_messageGareth Rees2014-10-17-44/+0
| | | | | | | | Models should not send emails
| * Extract resending a message from the modelGareth Rees2014-10-17-3/+3
| |
| * Use updated method for sending an InfoRequestBatchGareth Rees2014-10-17-1/+7
| | | | | | | | | | Could do with extracting the sending from the model, but this allows the removal of OutgoingMessage#send_message
| * OutgoingMessage methods for async email sendingGareth Rees2014-10-14-0/+42
| | | | | | | | | | | | | | | | | | #sendable? checks whether the message is in a state that we can send, otherwise it raises an appropriate exception. Not ideal (should just return false, but this is existing behaviour) #record_email_delivery updates the OutgoingMessage instance, logs an event with the InfoRequest and updates the InfoRequest state.
* | Require heading and category in PublicBodyCategoryLink.Louise Crow2014-10-09-0/+2
| | | | | | | | Update default factory accordingly.
* | Remove old PublicBodyCategories calls.Louise Crow2014-10-09-2/+2
| | | | | | | | | | Add deprecation notice to draw attention to any place where PublicBodyCategories is called from themes.
* | Don't migrate categories automatically.Louise Crow2014-09-26-2/+0
| | | | | | | | | | It becomes confusing in the test environment, better to have a clean script.
* | Don't require a category descriptionLouise Crow2014-09-26-1/+0
| | | | | | | | | | Some existing themes don't use one for categories like 'misc' and that seems reasonable usage. Add some specs for the things we do validate.
* | Use double quotes to avoid backslashLouise Crow2014-09-26-3/+3
| |
* | Create module to clarify what code is just for migrating from files.Louise Crow2014-09-25-79/+11
| |
* | fixup! Basic category admin screenLouise Crow2014-09-25-2/+2
| |
* | fixup! Use translation tables for PublicBodyCategory and PublicBodyHeadingLouise Crow2014-09-25-53/+51
| |
* | fixup! Replace existing PublicBodyCategories functionality with db models ↵Louise Crow2014-09-24-1/+1
| | | | | | | | PublicBodyCategory and PublicBodyHeading
* | fixup! Replace existing PublicBodyCategories functionality with db models ↵Louise Crow2014-09-24-53/+54
| | | | | | | | PublicBodyCategory and PublicBodyHeading
* | fixup! Add display order to public body categories and headingsLouise Crow2014-09-24-1/+1
| |
* | fixup! Replace existing PublicBodyCategories functionality with db models ↵Louise Crow2014-09-24-10/+10
| | | | | | | | PublicBodyCategory and PublicBodyHeading
* | fixup! Basic category admin screenLouise Crow2014-09-24-16/+17
| |
* | fixup! Validation of display order, default setting callbacks.Louise Crow2014-09-24-3/+3
| |
* | Validation of display order, default setting callbacks.Louise Crow2014-09-22-14/+34
| |
* | Destroy link on destruction of heading or category.Louise Crow2014-09-22-2/+2
| |
* | Add display order to public body categories and headingslizconlan2014-09-22-6/+62
| |
* | Reinstate automatic loading of categories on get if no categories definedlizconlan2014-09-22-0/+2
| |
* | List categories without headings on the admin screenlizconlan2014-09-22-0/+9
| |
* | Basic category admin screenlizconlan2014-09-22-4/+69
| |
* | Use translation tables for PublicBodyCategory and PublicBodyHeadinglizconlan2014-09-22-18/+51
| |
* | Replace existing PublicBodyCategories functionality with db models ↵lizconlan2014-09-22-0/+137
|/ | | | PublicBodyCategory and PublicBodyHeading
* Use dot rather than colon for method callGareth Rees2014-09-19-1/+1
|
* Group class methods before instance methodsGareth Rees2014-09-19-12/+12
|
* Remove uneeded code / Tidy upGareth Rees2014-09-19-66/+88
|
* Remove unused validationGareth Rees2014-09-19-1/+1
|
* Tidy OutgoingMessage macro methodsGareth Rees2014-09-19-22/+22
|
* Merge branch 'issues/1833-censor-rule-validation' into rails-3-developGareth Rees2014-09-15-1/+5
|\
| * Add correct validations to CensorRuleGareth Rees2014-09-12-1/+5
| |
* | Merge branch 'hotfix/0.19.0.1' into rails-3-developLouise Crow2014-09-04-0/+13
|\ \ | |/ |/|
| * Return a list of all cache directories for the requestLouise Crow2014-09-01-4/+10
| |
| * Use request dirs method.Louise Crow2014-09-01-2/+1
| |
| * Use path relative to Rails root.Louise Crow2014-09-01-1/+1
| |
| * Move method to model to make it more testable, add spec.Louise Crow2014-09-01-0/+8
| |
* | Make csv import fields a class attribute that can be overridenSteven Day2014-08-22-1/+19
|/
* Refactor state update API, better error handlinglizconlan2014-07-28-0/+10
| | | | Filters; more 403s, fewer 500s; added logging; less duplication
* Merge branch 'issues/1415-bulk-update-public-bodies' into rails-3-developGareth Rees2014-06-25-39/+3
|\
| * Move PublicBody domain logic from controllerGareth Rees2014-06-06-0/+3
| | | | | | | | | | | | Moves the magic 'site_administration' tag logic to the PublicBody model. Easier to make the string passed to `PublicBody#has_tag?` configurable if we want to allow this to be set per install.
| * Extract public body CSV export to its own classGareth Rees2014-06-06-39/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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.
* | Merge branch 'replace-xxx-todo' into rails-3-developGareth Rees2014-06-16-32/+32
|\ \
| * | Rename XXX comments with TODO:Gareth Rees2014-06-10-32/+32
| |/ | | | | | | Picks these up in `rake notes` and adds semantic meaning
* / Allow a message with more than one event to be destroyed.hotfix/0.18.0.2Louise Crow2014-06-06-7/+8
|/ | | | Fixes #1569
* Remove translation of error messagesLouise Crow2014-05-12-2/+2
| | | | These messages will only appear in the admin interface so currently shouldn't be translated - https://github.com/mysociety/alaveteli/issues/1353
* Add PublicBody.searchGareth Rees2014-05-01-0/+28
| | | | | Search for public bodies whose searchable attributes are like a given query.
* Merge branch 'issues/337-attachment-title' into rails-3-developGareth Rees2014-04-14-77/+4
|\
| * Update gubbins to call AttachmentToHTMLGareth Rees2014-04-07-1/+2
| |