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: d22e142c0d5654a1287d706ad235b1d921fbf641
4
- data.tar.gz: befe5711c88baea2c46f9004aaccfef20541db74
3
+ metadata.gz: a094c41767f9fee30c80858e19061dd0468c877a
4
+ data.tar.gz: b202613a388beb22fcf6209b56d36fbf22bfe2b8
5
5
  SHA512:
6
- metadata.gz: 85757bb7c0f7e485d4912877572d0a9bfa7d890988c3c6df50bc40fb208e699f5394b3f014a675c7b24671aaad336b378c2d60197124efa4f0acc15024853fbe
7
- data.tar.gz: 2c0c4d49b32b6d958804f1693bc10d018dba0b0566d0c7514fdc9ca974eec3351b89525986eb160f9562e95b1c5bd0bc8984334dde6a30548f05c3fda8d9cefc
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
@@ -1,4 +1,4 @@
1
1
  module Protector
2
2
  # Gem version
3
- VERSION = "0.6.2"
3
+ VERSION = "0.6.3"
4
4
  end
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.2
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-16 00:00:00.000000000 Z
11
+ date: 2013-09-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport