strict_money 0.2.0 → 0.3.0
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: 3f1d0d98c2cc60330eaf48ae5b1fa13f98d7348bfa237e335aae89237e1c8fdc
|
4
|
+
data.tar.gz: 7c3859e13cf3ae630d269b60e083ca5aa669f231e07c212c10bca735c81bff9c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3eb49d358d72a98917f2b31a0f84ebc911d5e7e814798514a9a330b8319f78ed2084d00af43866908110fd5eef62f3bccccded7e133436bb1fc107a76775a68d
|
7
|
+
data.tar.gz: a0ae54dc06c07bf04c5feea5a778ec1b34aed59f6bbd8e18a43a8d5a098181257880320d3e72d8fbf749700393d870eee19f8354365efad5e03a442ec92092fd
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# Supply validation macros for Mongoid classes that embed StrictMoney::Amount.
|
2
2
|
class FinancialityValidator < ActiveModel::EachValidator
|
3
3
|
def check_validity!
|
4
|
-
invalid_keys = options.keys - [:positive, :not_negative]
|
4
|
+
invalid_keys = options.keys - [:allow_nil, :positive, :not_negative]
|
5
5
|
raise "Invalid keys #{invalid_keys.inspect} for financiality validator" if invalid_keys.present?
|
6
6
|
end
|
7
7
|
|
data/lib/strict_money/version.rb
CHANGED