validation_skipper 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/validation_skipper/version.rb +1 -1
- data/lib/validation_skipper.rb +2 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NzU3ZThkMWYxOGIzZWI0MDRlZDkzZjFiNTFkNTllMWM4NzM2YTc3MA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YWMxNDk0NDFmZTUwMDAxY2I0M2UzOGI4YWJiYTNhM2QyYTZhNDliMg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NzU1YjMwYmZjYWJiZTUxM2Y3YTcwNjA2ZDFiMTY2OTUwYmNhMWVmZDM2YzEx
|
10
|
+
NGQxMjdiMmYwN2MzYzgzZGIxOGU1NzUwYTAzNmNhYjc1Mzc4MGY4ZTNjNDk4
|
11
|
+
MWRjZGEwODAzOGNjYTJhYzczNjczMDgyMzY2OGYwNWM4Mjc2NjA=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NGQ1ZTBlZjMzNWI2NDA0NGQ4ZWNiNmQyYTZjNmQ2OTc4NzQyYmIwMDI1Zjli
|
14
|
+
OTgwZmU4YzM2OWUwMTU4Y2Q2Yjc1YzNkZThiZjAxN2RlYTkxNDA3NmVkZmM3
|
15
|
+
YTMzYjAzYmNhNzhiNWIzOWYzMzg1YzlmYTQ5NWM4NDhjZDBjNzE=
|
data/lib/validation_skipper.rb
CHANGED
@@ -14,10 +14,8 @@ module ValidationSkipper
|
|
14
14
|
end
|
15
15
|
end
|
16
16
|
|
17
|
-
|
18
|
-
|
19
|
-
args.each { |attr| send("skip_#{attr}_validation=", true) }
|
20
|
-
end
|
17
|
+
def skip_validation_for(*args)
|
18
|
+
args.each { |attr| send("skip_#{attr}_validation=", true) }
|
21
19
|
end
|
22
20
|
end
|
23
21
|
ActiveRecord::Validations.send(:include, ValidationSkipper)
|