aboutsummaryrefslogtreecommitdiffstats
path: root/app/models
Commit message (Collapse)AuthorAgeLines
* Clarify alert logic in a commentSeb Bacon2011-07-26-1/+5
|
* Don't bother stripping whitespace when checking old requests: it's an ↵Seb Bacon2011-07-26-8/+1
| | | | expensive operation with a relatively small benefit.
* catch MissingSourceFile instead of NameError when including custom states, ↵David Cabo2011-07-26-1/+1
| | | | in order to handle the case when file is not present
* drop strange, stray commentRobin Houston2011-07-26-1/+0
| | | | | | Conflicts: app/models/raw_email.rb
* Drop post_redirects older than 2 months. The 6 month limit meant we had far ↵Seb Bacon2011-07-26-1/+1
| | | | too much redundant data that we were needlessly backing up.
* 1) You can’t call an instance method from a class method (d’oh)Robin Houston2011-07-14-2/+2
| | | | | | 2) The test coverage is less good than I imagined. XXXX need test for zip file attachments
* Merge branch 'master' of git@github.com:sebbacon/alaveteliRobin Houston2011-07-13-2/+2
|\
| * Fix bug that meant plugin custom states weren't being loadedSeb Bacon2011-07-13-2/+2
| |
* | Continue processing if we encounter a corrupt zip fileRobin Houston2011-07-13-21/+31
|/
* Refactor custom states loading (use class methods where appropriate, ↵Seb Bacon2011-07-12-21/+13
| | | | simplify main code at the cost (small) of test legibility)
* ensure we don't load custom states from plugins when running testsSeb Bacon2011-07-12-1/+7
|
* merge IZ/Kosovo fork and refactorSeb Bacon2011-07-12-93/+155
|\
| * Improve factoring out of custom states code (refactor a little, add tests)Seb Bacon2011-07-12-34/+51
| |
| * As a first attempt, in a dumb way, factor out jurisdiction-specific states ↵Seb Bacon2011-07-07-6/+14
| | | | | | | | to themes
| * fallbacks for public_body_categories (this needs to be done in a better way, ↵Seb Bacon2011-07-07-2/+9
| | | | | | | | but will do for now
| * Move various hard-coded strings to config fileSeb Bacon2011-07-07-1/+3
| |
| * Changes required to get selishta (Kosovo) fork merges to pass tests. ↵Seb Bacon2011-07-06-6/+8
| | | | | | | | Includes new "REPLY_LATE_AFTER_DAYS" config option.
| * initial merge of Kosovan branch; still need to get tests passing, factor out ↵Seb Bacon2011-07-06-80/+106
| |\ | | | | | | | | | Kosovan-specific code
| | * I18n string for modelsFaton Selishta2011-06-30-66/+66
| | |
| | * I18n fixFaton Selishta2011-06-02-2/+10
| | |
| | * Specific code for our requirements (kosovo law, our request etc..)Faton Selishta2011-06-02-2/+20
| | |
| | * Fix a bug of translationFaton Selishta2011-04-26-2/+1
| | |
* | | The generated Message-Id value uses the id of the OutgoingMessage, whichRobin Houston2011-07-08-4/+4
| | | | | | | | | | | | | | | is not assigned till the object is saved. So we need to save it before we send the message.
* | | Include the id of the OutgoingMessage in the SMTP Message-Id, andRobin Houston2011-07-07-5/+24
|/ / | | | | | | | | | | record the full Message-Id in the event log. Closes #70.
* | Google Docs Viewer can now handle .pptx and .xlsx files.Robin Houston2011-07-04-50/+39
| | | | | | | | Closes #68.
* | The error messages are clearly designed to be used *without* theRobin Houston2011-06-23-2/+2
| | | | | | | | | | | | field name being prepended, so change the ApplicationHelper::foi_error_messages_for method to not prepend the field name, and add the field name back to the two messages from which we previously removed it.
* | Calling a class method from an instance method needs to be done explicitlyRobin Houston2011-06-22-1/+1
| |
* | Run wvText through the external_command wrapper, tooRobin Houston2011-06-21-1/+1
| |
* | Add an option to make alert_tracks run continually, rather than just ↵Robin Houston2011-06-21-0/+13
| | | | | | | | processing whichever alerts are due right now.
* | Replace STDERR.puts by $stderr.puts elsewhere, which is potentially more ↵Robin Houston2011-06-21-3/+3
| | | | | | | | flexible (because STDERR is always the system standard error file descriptor, whereas $stderr can be replaced by some other ruby object to handle error output).
* | Get rid of commented-out STDERR.puts messagesRobin Houston2011-06-21-21/+0
| |
* | - Refactor models/incoming_message.rb to get rid of the hideousRobin Houston2011-06-21-210/+98
| | | | | | | | | | | | | | global variables and methods. Move the MIME type stuff into lib/alaveteli_file_types.rb. - Correct the spelling of the word extensions (not extentions).
* | TypoRobin Houston2011-06-21-1/+1
| |
* | If we print an error message from an external converter program,Robin Houston2011-06-20-0/+1
| | | | | | | | indicate which program produced the message.
* | When external converters are used to extract text from attachmentsRobin Houston2011-06-20-23/+39
| | | | | | | | | | | | | | | | | | | | | | for Xapian, suppress the stderr output of these external programs unless they actually fail. It is possible this will not significantly reduce the noise from converters, because they may actually have been failing. At least with this change we’ll be able to tell which it is. Closes #52.
* | Set the default value for publication_scheme explicitly in an ↵Robin Houston2011-06-15-0/+6
| | | | | | | | after_initialize callback, because the usual mechanism for setting default values (whatever that is) does not seem to work with attributes that are translated by the globalize2 plugin
* | It is not permissible to have more than one "translates" listRobin Houston2011-06-15-2/+1
| | | | | | | | in an ActiveRecord model. (The second was being silently ignored.)
* | Remove the field name from the validates_presence_of :message, to prevent ↵Robin Houston2011-06-11-2/+2
| | | | | | | | error messages such as "Name Name can't be blank"
* | Don't store passwords in post_params.Louise Crow2011-05-16-2/+7
|/
* fix adding new public bodiesSeb Bacon2011-04-08-2/+2
|
* Merge branch 'master' of github.com:sebbacon/alaveteliSeb Bacon2011-04-01-6/+7
|\
| * Use google viewer for docs - wvWare is hanging server.Louise Crow2011-03-30-6/+7
| |
* | some test fixageSeb Bacon2011-03-11-1/+1
| |
* | initial support for localising model data (not fully tested)Seb Bacon2011-03-10-4/+13
|/
* Add explicit error messages for the validations that were using defaults.Louise Crow2011-02-24-5/+5
|
* Updating validations so that none expect automatic interpolation of the ↵Louise Crow2011-02-24-45/+45
| | | | attribute.
* remove obselete regexSeb Bacon2011-01-24-1/+1
|
* another do-not-reply regexSeb Bacon2011-01-22-1/+1
|
* Remove use of XLHTML.Matthew Somerville2011-01-13-8/+11
|
* Stop people titling a request just "FOI request"Francis Irving2010-10-27-0/+3
|