Skip to content
This repository has been archived by the owner on Oct 12, 2018. It is now read-only.

Commit

Permalink
Fix overwriting prefix routes in the router.
Browse files Browse the repository at this point in the history
Bumping govuk_content_models to 0.4.0 will persist the 'paths' and
'prefixes' fields, so we don't overwrite existing prefix routes with
their fixed namesakes.
  • Loading branch information
dhwthompson committed Aug 7, 2012
1 parent 16dfcea commit 1640044
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Expand Up @@ -33,7 +33,7 @@ gem 'lograge'
if ENV['CONTENT_MODELS_DEV']
gem "govuk_content_models", path: '../govuk_content_models'
else
gem "govuk_content_models", "0.3.0"
gem "govuk_content_models", "0.4.0"
end

if ENV['BUNDLE_DEV']
Expand Down
4 changes: 2 additions & 2 deletions Gemfile.lock
Expand Up @@ -117,7 +117,7 @@ GEM
json
gherkin (2.7.3)
json (>= 1.4.6)
govuk_content_models (0.3.0)
govuk_content_models (0.4.0)
bson_ext
differ
gds-api-adapters
Expand Down Expand Up @@ -295,7 +295,7 @@ DEPENDENCIES
gds-sso (~> 1.2.0)
gds-warmup-controller (= 0.1.0)
gelf
govuk_content_models (= 0.3.0)
govuk_content_models (= 0.4.0)
launchy
lograge
minitest
Expand Down
2 changes: 1 addition & 1 deletion app/models/enhancements/artefact.rb
Expand Up @@ -3,5 +3,5 @@
class Artefact
# Add a non-field attribute so we can pass indexable content over to Rummager
# without persisting it
attr_accessor :indexable_content, :paths, :prefixes
attr_accessor :indexable_content
end

0 comments on commit 1640044

Please sign in to comment.