mini_defender 0.3.6 → 0.3.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mini_defender/extensions/hash.rb +1 -1
- data/lib/mini_defender/rules/unique.rb +1 -1
- data/lib/mini_defender/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3723a27bf45fd1c1af3c404e3fee152cc744089dd19861c1e01ebcb9e3b6a9f4
|
4
|
+
data.tar.gz: 354e0d09d03e2d67dc3b862acd3766594f6a4df0162673b6fcf036ade8d74ddf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ed290224f41f28a65234ac12a0f990da65f8e25c8bb1c94d4703f6da02f0f7e66864ee133ea17e2fac97316b5a347214130feff42ce2d372756922fa73f3704f
|
7
|
+
data.tar.gz: 568d3d3601ac8eacfaaa538a52790654c294dc4cb763ff5e9f310ffd235def326ac7722dbc8dcca8d3a97b4f788704625dac03da9ec832a9ea2e7166b050679a
|
@@ -40,7 +40,7 @@ class MiniDefender::Rules::Unique < MiniDefender::Rule
|
|
40
40
|
|
41
41
|
query = @model.where(@column => value)
|
42
42
|
query = @additional_scope.call(query) unless @additional_scope.nil?
|
43
|
-
query = query.where.not(@column
|
43
|
+
query = query.where.not(@column => @ignore) unless @ignore.nil?
|
44
44
|
|
45
45
|
!query.exists?
|
46
46
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mini_defender
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ali Alhoshaiyan
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-09-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|