protector 0.6.2 → 0.6.3
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a094c41767f9fee30c80858e19061dd0468c877a
|
4
|
+
data.tar.gz: b202613a388beb22fcf6209b56d36fbf22bfe2b8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 371868628bfce74285256e22c178c015f69bc93754747a9c15cadb7092b04b2cd2d2f25e17e1d6b22f19b9311a257fcd4b0bcb01bded148c7bc153835eb70858
|
7
|
+
data.tar.gz: 275e55334c99481a7f3eae8f3576aa18c26e3275d271f5d8563425b1abfbadf8f72f7fa100464f4bf7f3ab9490d784794d216acd4450b50bac23b55126327068
|
@@ -3,9 +3,9 @@ module Protector
|
|
3
3
|
module StrongParameters
|
4
4
|
def self.sanitize!(args, is_new, meta)
|
5
5
|
if is_new
|
6
|
-
args[0] = args[0].permit *meta.access[:create].keys
|
6
|
+
args[0] = args[0].permit *meta.access[:create].keys if meta.access.include? :create
|
7
7
|
else
|
8
|
-
args[0] = args[0].permit *meta.access[:update].keys
|
8
|
+
args[0] = args[0].permit *meta.access[:update].keys if meta.access.include? :update
|
9
9
|
end
|
10
10
|
end
|
11
11
|
|
@@ -23,4 +23,4 @@ module Protector
|
|
23
23
|
end
|
24
24
|
end
|
25
25
|
end
|
26
|
-
end
|
26
|
+
end
|
data/lib/protector/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: protector
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Boris Staal
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-09-
|
11
|
+
date: 2013-09-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|