Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Use a separate user collection

This is so Panopticon and Publisher don't overwrite each other's user
data. This is a problem when Signonotron2 starts giving different apps
different user permissions data.
  • Loading branch information...
commit b8dc1f4d56a314766e7055b414e0f8e3558a0e0f 1 parent ef3c90d
Jamie Cobbett jamiecobbett authored
2  Gemfile
@@ -33,7 +33,7 @@ gem 'lograge'
33 33 if ENV['CONTENT_MODELS_DEV']
34 34 gem "govuk_content_models", path: '../govuk_content_models'
35 35 else
36   - gem "govuk_content_models", "1.2.0"
  36 + gem "govuk_content_models", "1.3.0"
37 37 end
38 38
39 39 if ENV['BUNDLE_DEV']
4 Gemfile.lock
@@ -118,7 +118,7 @@ GEM
118 118 json
119 119 gherkin (2.11.1)
120 120 json (>= 1.4.6)
121   - govuk_content_models (1.2.0)
  121 + govuk_content_models (1.3.0)
122 122 bson_ext
123 123 differ
124 124 gds-api-adapters
@@ -302,7 +302,7 @@ DEPENDENCIES
302 302 gds-sso (~> 1.2.0)
303 303 gds-warmup-controller (= 0.1.0)
304 304 gelf
305   - govuk_content_models (= 1.2.0)
  305 + govuk_content_models (= 1.3.0)
306 306 launchy
307 307 lograge
308 308 minitest
1  config/initializers/user_collection_name.rb
... ... @@ -0,0 +1 @@
  1 +USER_COLLECTION_NAME = "panopticon_users"
8 test/unit/user_test.rb
... ... @@ -0,0 +1,8 @@
  1 +require 'test_helper'
  2 +
  3 +class UserTest < ActiveSupport::TestCase
  4 +
  5 + should "use a custom collection name for users" do
  6 + assert_equal "panopticon_users", User.collection_name
  7 + end
  8 +end

0 comments on commit b8dc1f4

Please sign in to comment.
Something went wrong with that request. Please try again.