govuk_content_models 46.0.1 → 47.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/app/models/user.rb +6 -4
- data/lib/govuk_content_models/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d3e6fa5d98ece1b2d76abca5d5744ac30e6f92c3
|
4
|
+
data.tar.gz: 20a6d76d5536733dd30f40c576290f58099a457b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 94250d4c61d7f14fb4c1d007db14cea428fbec244ab8276fe826f7263556882522dd36374ae29c670645e2c4b0f29aec8559afea597a235f2c6172f11f2a03bd
|
7
|
+
data.tar.gz: 5dde3b32422e2cc1ffd360698bd61b442f04a9f8ddd055610ec2c0676cd53c721d8b2fcd5957921335f297e216709fe83686a0413f7d9cab9129810b27e45ab7
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
# CHANGELOG
|
2
2
|
|
3
|
+
## 47.0.0
|
4
|
+
|
5
|
+
- Deprecate `User.collection_name` to specify the user database table - instead, use the `USER_COLLECTION_NAME` environment variable directly.
|
6
|
+
|
3
7
|
## 46.0.1
|
4
8
|
|
5
9
|
- Downgrade mongoid to 6.1.0 due to a bug caused by 6.1.1 in `SimpleSmartAnswerEdition`.
|
data/app/models/user.rb
CHANGED
@@ -8,10 +8,12 @@ class User
|
|
8
8
|
include Mongoid::Timestamps
|
9
9
|
include GDS::SSO::User
|
10
10
|
|
11
|
-
# Let an app configure the collection name to use,
|
12
|
-
# initializer
|
13
|
-
|
14
|
-
|
11
|
+
# Let an app configure the symbolized collection name to use,
|
12
|
+
# e.g. set a constant in an initializer.
|
13
|
+
if defined?(USER_COLLECTION_NAME)
|
14
|
+
store_in collection: USER_COLLECTION_NAME.to_sym
|
15
|
+
else
|
16
|
+
store_in collection: :users
|
15
17
|
end
|
16
18
|
|
17
19
|
field "name", type: String
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: govuk_content_models
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 47.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Paul Battley
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-06-
|
11
|
+
date: 2017-06-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bson_ext
|