govuk_content_models 44.2.1 → 44.3.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/local_transaction_edition.rb +2 -0
- 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: 1c08eec470a7c068aedd65b2e7172c2daefc5fdf
|
4
|
+
data.tar.gz: 8756e6da209f9286c3cd2e80a65ad90574e7b2cd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8203f6f93f6dea9d07fda2b1726d7f9187faeb1a705051ab034f1f86bb1a1250c272d4ec6cbf23e18d6e661629ecef7a9d1bf1f5fedffb24e64de27ea1e76ded
|
7
|
+
data.tar.gz: 63a569ca2b276ae56cf52691236e50b94a0957f245377a72ffa5ce9cb16a9a45157f1a17f5456e1344647e659e7499a439930f8f402269da7a1c18fd9475c395
|
data/CHANGELOG.md
CHANGED
@@ -4,6 +4,7 @@ require "edition"
|
|
4
4
|
class LocalTransactionEdition < Edition
|
5
5
|
field :lgsl_code, type: Integer
|
6
6
|
field :lgil_override, type: Integer
|
7
|
+
field :lgil_code, type: Integer
|
7
8
|
field :introduction, type: String
|
8
9
|
field :more_information, type: String
|
9
10
|
field :need_to_know, type: String
|
@@ -11,6 +12,7 @@ class LocalTransactionEdition < Edition
|
|
11
12
|
GOVSPEAK_FIELDS = [:introduction, :more_information, :need_to_know]
|
12
13
|
|
13
14
|
validate :valid_lgsl_code
|
15
|
+
validates :lgil_code, numericality: { only_integer: true, message: "can only be whole number between 0 and 999." }
|
14
16
|
|
15
17
|
def valid_lgsl_code
|
16
18
|
if ! self.service
|
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: 44.
|
4
|
+
version: 44.3.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-
|
11
|
+
date: 2017-04-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bson_ext
|