aboutsummaryrefslogtreecommitdiffstats
path: root/app/models/public_body.rb
Commit message (Collapse)AuthorAgeLines
* Rename Configuration class to avoid conflict with ActiveSupport::ConfigurableHenare Degan2013-03-03-2/+2
|
* Merge branch 'develop' into rails-3-spikeHenare Degan2013-02-15-2/+2
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: Gemfile Gemfile.lock app/controllers/general_controller.rb app/controllers/track_controller.rb app/models/outgoing_message.rb app/models/public_body.rb app/models/user.rb app/views/general/frontpage.rhtml config/environment.rb config/initializers/inflections.rb config/initializers/mime_types.rb db/migrate/094_remove_old_tags_foreign_key.rb lib/timezone_fixes.rb spec/models/request_mailer_spec.rb spec/views/request/list.rhtml_spec.rb
| * PublicBody model - Overwriting validate is deprecated in Rails 3Henare Degan2013-01-25-9/+10
| |
* | Update to globalize3 methodHenare Degan2013-02-07-1/+1
| |
* | Overwriting validate has been deprecatedHenare Degan2013-01-25-9/+12
| |
* | Merge branch 'rails_xss' into rails-3-spikeMatthew Landauer2013-01-25-0/+2
|\| | | | | | | | | | | | | | | Conflicts: Gemfile Gemfile.lock config/environment.rb lib/i18n_fixes.rb
| * Merge remote-tracking branch 'mysociety/develop' into rails_xssMatthew Landauer2013-01-15-0/+2
| |\
| | * Don't export the fake authorities that we use for admin.Louise Crow2013-01-08-0/+2
| | |
* | | Change method name as it conflicts with globalize3 method nameHenare Degan2013-01-24-1/+1
| | |
* | | PublicBody.locale doesn't exist anymoreMatthew Landauer2013-01-04-2/+2
| | |
* | | Merge branch 'rails_xss' into rails-3-spikeMatthew Landauer2013-01-04-1/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: Gemfile Gemfile.lock app/views/request/_hidden_correspondence.rhtml app/views/request/hidden.rhtml app/views/request/new_please_describe.rhtml app/views/user/show.rhtml lib/i18n_fixes.rb
| * | Escaping fixesMatthew Landauer2013-01-03-1/+1
| |/
* | named_scope has been renamed to scopeHenare Degan2012-12-11-1/+1
| |
* | The with_locale has been removed in Globalize3Henare Degan2012-12-11-26/+23
| | | | | | | | | | | | I think Globalize is supposed to pick up the locale from I18n anyway so I don't know if these are needed. I think I still haven't done the right thing but it's time to move on.
* | Switch to new method nameHenare Degan2012-12-11-5/+5
|/
* Restore disclosure log fields.Louise Crow2012-10-24-0/+2
|
* Merge remote-tracking branch ↵Louise Crow2012-10-24-0/+37
|\ | | | | | | | | | | | | 'openaustralia_github/csv_export_internal_admin_authority_bug' into develop Conflicts: app/controllers/public_body_controller.rb
| * added notes to csv exportMatthew Landauer2012-10-24-0/+2
| |
| * When exporting the authorities as csv don't include the internal admin authorityMatthew Landauer2012-10-24-2/+2
| |
| * Extract methodMatthew Landauer2012-10-24-0/+35
| |
* | Allow disclosure_log to be imported in csvMatthew Landauer2012-10-22-1/+1
|/
* Don't include admin authority in count on home pageMatthew Landauer2012-10-17-0/+6
|
* Rerun annotate -mMatthew Landauer2012-10-11-1/+1
|
* Use new Configuration for OVERRIDE_ALL_PUBLIC_BODY_REQUEST_EMAILSMatthew Landauer2012-10-02-1/+1
|
* Merge remote-tracking branch 'openaustralia_github/configuration_refactor' ↵Louise Crow2012-10-01-1/+1
|\ | | | | | | | | | | | | into develop Conflicts: config/general.yml-example
| * Extract configuration with defaults into one moduleMatthew Landauer2012-09-25-1/+1
| |
* | override_request_email returns nil if configuration not setMatthew Landauer2012-09-27-2/+4
| |
* | Extract methodMatthew Landauer2012-09-27-3/+6
| |
* | Add option to override all public body request emailsMatthew Landauer2012-09-27-0/+9
|/
* Add an option to disable comments on a requestRobin Houston2012-09-19-23/+18
| | | | Closes #30.
* Add a counter cache for the number of info_requests associated with public ↵Louise Crow2012-09-12-1/+1
| | | | bodies.
* Memoize the notes_without_html calculated value for the life of the model ↵Louise Crow2012-09-12-1/+2
| | | | instance - no need to keep applying the regex if called multiple times e.g. in a view.
* Move default value setting for publication scheme to before_save callback ↵Louise Crow2012-09-12-2/+4
| | | | rather than after_initialize - after_initialize accessing of the variable value was causing eager loading of public body translations to happen after the first attribute access, resulting in n+1 queries for translations.
* Quote name correctly in query. Fixes #598.Louise Crow2012-09-04-1/+1
|
* Add association between public bodies and censor rules, have info_request ↵Louise Crow2012-08-14-0/+1
| | | | apply rules from its public body.
* Set api_key in before_save rather than after_initialize (to avoid errors ↵Seb Bacon2012-07-19-2/+4
| | | | when uploading via CSV)
* WIP new requests feedRobin Houston2012-07-04-4/+0
|
* Use 33 bytes consistentlyRobin Houston2012-07-02-1/+1
| | | | | Let’s use 33 bytes consistently for the API key, to avoid an = pad at the end when it’s base64-encoded.
* Initialise API key in the modelRobin Houston2012-06-06-2/+6
|
* Generate an API key for each public bodyRobin Houston2012-06-06-1/+2
|
* Further annotation correctionsSeb Bacon2012-05-24-1/+1
|
* Merge from wombleton:feature/440_sparkly_admin_cssSeb Bacon2012-05-23-0/+25
| | | | | | | Includes a couple of additional fixes: * Remember to HTML-quote things that could come from users * Fix form post action for editing users
* Remove trailing whitespace (to make a cleaner forthcoming merge with ↵Seb Bacon2012-05-15-24/+24
| | | | wombleton:feature/440_sparkly_admin_css)
* Improve handling of nil for public body notesDavid Cabo2012-05-08-1/+1
|
* Ensure we always return a string of some kind when asking for the ↵Seb Bacon2012-05-02-1/+1
| | | | short_or_long_name of a public body
* first stab at sending PURGE requests to upstream varnish for request pages. ↵Seb Bacon2012-03-13-0/+5
| | | | Next step: making it asynchronous, e.g. with a queue of things to purge via a cron job.
* Don't add http when https is presentHenare Degan2012-03-13-1/+1
|
* Don't add extra www characters to web addresses that have been explicitly ↵Henare Degan2012-03-13-1/+1
| | | | defined
* Refactor methodHenare Degan2012-03-13-17/+4
|
* Make public authority home page links work. Fixes #271Henare Degan2012-03-13-1/+6
|