aboutsummaryrefslogtreecommitdiffstats
path: root/app/models/track_thing.rb
Commit message (Collapse)AuthorAgeLines
* WIP commit of public body page redesignMartin Wright2015-03-02-2/+1
|
* Extract descriptions in to TrackThing::TRACK_TYPESGareth Rees2014-10-29-20/+9
| | | | | Makes TrackThing.track_type_description easier to understand and easier to add new track types along with a description.
* Use where syntax for TrackThing.find_existingGareth Rees2014-10-29-2/+5
| | | | | | Faster (0.2ms vs 9.3ms) Shorter line length Non-deprecated syntax
* Refactor TrackType types and mediums to constantsGareth Rees2014-10-29-12/+11
|
* Dynamically call params hash for TrackThing#paramsGareth Rees2014-10-29-20/+11
| | | | | | | Easier to add params now; just add TRACK_TYPE_params method which returns the hash you want. Uses more idiomatic ||= instead of if @params.nil?
* Extract hashes in TrackThing#params to methodsGareth Rees2014-10-29-113/+134
| | | | | Use private methods to make TrackThing#params easier to read and ready for dynamic method calling based on the track_type
* Clean TrackThingGareth Rees2014-10-29-51/+49
| | | | | | | | | Use inline if Remove explicit return Use string interpolation Use unless instead of if ! Remove self. Use . instead of :: for class method calls
* Use self. for TrackThing class methodsGareth Rees2014-10-29-8/+8
|
* Group TrackThing class methods at top of fileGareth Rees2014-10-29-35/+37
|
* Group TrackThing macro methodsGareth Rees2014-10-29-6/+3
|
* Rename XXX comments with TODO:Gareth Rees2014-06-10-2/+2
| | | | Picks these up in `rake notes` and adds semantic meaning
* Make public body update titles translatable.Louise Crow2014-03-24-2/+6
| | | | | This way the translators can control the order of elements in the sentence.
* Reformat for line length.Louise Crow2014-03-24-15/+31
|
* Remove CGI.escape calls.Louise Crow2014-03-24-12/+12
| | | | Escaping will happen automatically in Rails 3.
* Move track descriptions to a helper.Louise Crow2014-03-24-8/+1
| | | | We can access url generation methods more easily here.
* Use entire descriptions for searches rather than assembling.Louise Crow2014-03-24-51/+19
| | | | | Assembling from phrases makes the descriptions impossible to translate - just give complete descriptions for the most common cases.
* Remove unused variableLouise Crow2014-03-17-4/+0
|
* 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-6/+5
|
* Change email address in header of source code to hello@mysociety.orgMatthew Landauer2013-03-26-1/+1
|
* Merge remote-tracking branch 'mysociety/develop' into rails-3-developHenare Degan2013-03-14-0/+2
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: Gemfile Gemfile.lock app/controllers/admin_request_controller.rb app/controllers/admin_track_controller.rb app/controllers/request_controller.rb app/controllers/services_controller.rb app/helpers/link_to_helper.rb app/mailers/request_mailer.rb app/models/application_mailer.rb app/models/info_request.rb app/views/admin_censor_rule/edit.html.erb app/views/admin_censor_rule/new.html.erb app/views/admin_public_body/_form.html.erb app/views/admin_public_body/_locale_selector.html.erb app/views/admin_public_body/_one_list.html.erb app/views/admin_public_body/edit.html.erb app/views/admin_public_body/list.html.erb app/views/admin_public_body/new.html.erb app/views/admin_request/_incoming_message_actions.html.erb app/views/admin_request/edit.html.erb app/views/admin_request/edit_comment.html.erb app/views/admin_request/edit_outgoing.html.erb app/views/admin_request/list.html.erb app/views/admin_request/list_old_unclassified.html.erb app/views/admin_request/show.html.erb app/views/admin_track/_some_tracks.html.erb app/views/admin_track/list.html.erb app/views/admin_user/edit.html.erb app/views/admin_user/list.html.erb app/views/admin_user/show.html.erb app/views/general/_footer.html.erb app/views/general/exception_caught.html.erb app/views/help/contact.html.erb app/views/layouts/default.html.erb app/views/public_body/_alphabet.html.erb app/views/request/_request_listing_single.html.erb app/views/request/_sidebar.html.erb app/views/request/new.html.erb app/views/request/show.html.erb app/views/request_mailer/external_response.rhtml app/views/request_mailer/fake_response.rhtml config/environment.rb config/environments/production.rb config/routes.rb spec/controllers/admin_censor_rule_controller_spec.rb spec/controllers/request_controller_spec.rb spec/controllers/track_controller_spec.rb spec/helpers/link_to_helper_spec.rb spec/mailers/request_mailer_spec.rb spec/models/info_request_spec.rb spec/spec_helper.rb spec/views/public_body/show.html.erb_spec.rb spec/views/request/show.html.erb_spec.rb vendor/plugins/rails_xss/lib/rails_xss/erubis.rb
| * Make tracking links relativeMatthew Landauer2013-02-13-0/+2
| |
* | Rename Configuration class to avoid conflict with ActiveSupport::ConfigurableHenare Degan2013-03-03-1/+1
|/
* Mark constructed URL strings which have been escaped as safe, so that they ↵Louise Crow2013-02-08-4/+5
| | | | aren't escaped when shown in flash notices.
* More escaping fixesMatthew Landauer2013-01-15-2/+2
|
* Fix description of a searchHenare Degan2012-10-18-1/+6
| | | | Used to say "comments or requests which are " when you did: View requests > All requests > Follow
* Remove svn tags that are out of date as we are now using gitMatthew Landauer2012-10-09-2/+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
| |
* | Allow the descriptive strings for track types to be translated.Louise Crow2012-09-26-9/+9
|/
* another typoSeb Bacon2012-06-15-1/+1
|
* typo in user-facing stringSeb Bacon2012-06-15-1/+1
|
* Support "following" functionality:Seb Bacon2012-05-30-33/+33
| | | | | | * Change "email me about stuff" wording to "follow" throughout * Introduce a new flag that the user can set, which controls if they get email alerts * Add a new link to a "wall" for logged in users where they can see a feed of all the things they're following
* Further annotation correctionsSeb Bacon2012-05-24-1/+1
|
* Remove trailing whitespace (to make a cleaner forthcoming merge with ↵Seb Bacon2012-05-15-11/+11
| | | | wombleton:feature/440_sparkly_admin_css)
* Correctly create tracks for searches that are filtered by variety:authority ↵Seb Bacon2012-05-11-1/+1
| | | | via the search UI
* Merge branch 'develop' of github.com:sebbacon/alaveteli into developRobin Houston2012-05-03-2/+2
|\
| * Another change to make track descriptions deterministic, so tests can work ↵Seb Bacon2012-05-02-3/+2
| | | | | | | | reliably
| * Make the order of words in a track_thing description deterministic, so the ↵Seb Bacon2012-05-02-0/+1
| | | | | | | | test always passes
* | Filter public body tracks by event typeRobin Houston2012-05-03-4/+8
|/ | | | | Add the facility to filter the public body feed by event type using a query string parameter, e.g. event_type=sent.
* Don't raise an error if the user deletes a track through the UI. Fixes #353.Seb Bacon2012-01-18-8/+7
|
* Ensure model schema documentation is up to date.Seb Bacon2012-01-09-6/+6
|
* Store user's locale against profile, so we can send them localised track ↵Seb Bacon2011-09-03-8/+8
| | | | emails. Also internationalize more strings at the same time. Fixes #163.
* Make custom track queries have readable names. Closes #169.Seb Bacon2011-09-01-1/+59
|
* re-enable tracking on "view requests" page (and make note that we now need ↵Seb Bacon2011-08-29-0/+5
| | | | to make the descriptions we present users more friendly)
* Further work in progress on better search functionalitySeb Bacon2011-08-29-1/+11
|
* more work in progress on search formsSeb Bacon2011-08-29-7/+7
|
* I18n'ize some more strings in viewsDavid Cabo2011-08-11-11/+11
|
* I18n'd hardcoded WhatDoTheyKnow strings, mostly in mails. Use named variable ↵David Cabo2011-08-11-18/+18
| | | | substitution in gettext strings.
* I18n string for modelsFaton Selishta2011-06-30-8/+8
|