rails_core_extensions 0.7.0 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9face8b8b7a3830b5704638ce7618216cd98f9b87d15804835d3f572ec246ada
|
4
|
+
data.tar.gz: c3ed66a915f38851c526e21b913b043a6a580e0ce50c913e0c2ba848e49958c4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 73f69a1d40644f9617d8657562c0e44012808be341a374b086104b78ad502a852faf0fdd665d44596a430268ee099b8fe5f35835290d69515ce3557f600c51af
|
7
|
+
data.tar.gz: 06a5c4f0fb1dab19c84d1c436ca69f407ee279c45ad0a6917ed7c39a50e698a476ad484b21e4011a09c49d7f191ea9552325c23d129817840be65577e736cb39
|
data/CHANGELOG.md
CHANGED
@@ -10,7 +10,7 @@ module RailsCoreExtensions
|
|
10
10
|
field = field.to_sym
|
11
11
|
before_validation do |record|
|
12
12
|
begin
|
13
|
-
Liquid::Template.parse(record.send(field), error_mode: strict)
|
13
|
+
Liquid::Template.parse(record.send(field), error_mode: :strict)
|
14
14
|
rescue Liquid::SyntaxError => e
|
15
15
|
record.errors.add(field, "Liquid Syntax Error: #{e}")
|
16
16
|
end
|