aboutsummaryrefslogtreecommitdiffstats
path: root/app/models/comment.rb
Commit message (Collapse)AuthorAgeLines
* Fix missing translation introduced in 962357cGareth Rees2014-11-12-3/+3
| | | | | 962357c tidied the translation but left the translation call (`_()`) around the variable rather than the string literal.
* Move Comment class method to top of fileGareth Rees2014-10-29-15/+15
|
* Improve Comment.find_existingGareth Rees2014-10-29-4/+7
| | | | | Use `.where` Extract complex sql to named variable for readability and line length
* Use more meaningful validations in CommentGareth Rees2014-10-29-3/+9
| | | | Use validation method names that describe what the validation does
* Tidy CommentGareth Rees2014-10-29-17/+16
| | | | | | | | | | | | | Remove self. Use each rather than for Use {} block rather than do/end Use self. rather than ClassName. for class method Indent private as much as method definitions Remove explicit return Line Length Use inline if Move callback before method definitions Use unless instead of if !
* Rename XXX comments with TODO:Gareth Rees2014-06-10-1/+1
| | | | Picks these up in `rake notes` and adds semantic meaning
* Make method names for finding existing objects clearerLouise Crow2013-12-04-1/+1
| | | | | They're not finding by the existing object, they're finding an existing object.
* Re-annotate models with database fieldsLouise Crow2013-09-16-9/+8
|
* Change email address in header of source code to hello@mysociety.orgMatthew Landauer2013-03-26-1/+1
|
* Indentation and spacing fixes onlyHenare Degan2013-01-25-4/+6
|
* Formatting only: Group associations and validationsHenare Degan2013-01-25-4/+3
|
* Comment model - Overwriting validate is deprecated in Rails 3Henare Degan2013-01-25-10/+12
|
* html content of messages and comments are html safeMatthew Landauer2013-01-03-1/+1
|
* Remove svn tags that are out of date as we are now using gitMatthew Landauer2012-10-09-2/+0
|
* Further annotation correctionsSeb Bacon2012-05-24-1/+1
|
* Merge from wombleton:feature/440_sparkly_admin_cssSeb Bacon2012-05-23-3/+5
| | | | | | | Includes a couple of additional fixes: * Remember to HTML-quote things that could come from users * Fix form post action for editing users
* Ensure model schema documentation is up to date.Seb Bacon2012-01-09-3/+4
|
* I18n string for modelsFaton Selishta2011-06-30-2/+2
|
* Updating validations so that none expect automatic interpolation of the ↵Louise Crow2011-02-24-2/+2
| | | | attribute.
* Annotate models.Francis Irving2010-10-09-1/+1
|
* Update model annotations.Francis Irving2010-09-15-1/+1
|
* Update model annotations.Francis Irving2010-07-27-1/+1
|
* Add specific draft attribute.Francis Irving2010-07-15-1/+1
|
* Update model annotations.Francis Irving2010-07-15-1/+1
|
* Fix comment about thisFrancis Irving2010-06-20-1/+1
|
* Update model field comments.francis2009-09-17-2/+2
|
* Don't allow duplicate followup messages to the same request.francis2009-08-18-1/+4
| | | | Prevent requests, followups and annotations which have all capitals or all lowercase letters.
* Annotate models update.francis2009-06-26-2/+2
|
* Add charity registration number to database & edit form for public bodytony2009-04-13-2/+2
|
* Update models and schema for new tabletony2009-03-09-2/+2
|
* Option to ban users.francis2009-03-09-2/+2
|
* Add publication scheme for public bodies. (New database column and admintony2009-03-04-2/+2
| | | | interface only; public display can come later.)
* Check that we get exim log lines OK.francis2009-02-09-2/+2
| | | | Annotate models.
* Annotate models.francis2009-01-26-2/+2
|
* Strip attributes.francis2008-12-02-1/+3
|
* Update model annotations.francis2008-10-28-2/+2
|
* Option to hide comments.francis2008-10-02-1/+9
|
* Annotate models.francis2008-09-22-2/+2
|
* Annotate models.francis2008-09-22-2/+2
|
* Annotate models.francis2008-08-31-2/+2
| | | | Todo update.
* Prevent double posting of comments, and test code for that.francis2008-08-26-1/+14
|
* And here toofrancis2008-08-22-1/+3
|
* Most of comments code.francis2008-08-13-0/+61