params_cleaner 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/params_cleaner.rb +2 -1
  2. metadata +6 -6
@@ -5,7 +5,7 @@ require "active_support/hash_with_indifferent_access"
5
5
  module ParamsCleaner
6
6
  extend ActiveSupport::Concern
7
7
 
8
- VERSION = "0.3.0"
8
+ VERSION = "0.3.1"
9
9
 
10
10
  def clean_params(root_params = params, top_level = true)
11
11
  cleaned_params = root_params.map do |key, value|
@@ -48,6 +48,7 @@ module ParamsCleaner
48
48
  module ClassMethods
49
49
  def allowed_params(*params_groups)
50
50
  @allowed_top_level = []
51
+ @allowed_nested = {}
51
52
 
52
53
  params_groups.each do |params_group|
53
54
  if params_group.is_a?(Hash)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: params_cleaner
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-05-30 00:00:00.000000000 Z
12
+ date: 2012-07-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
16
- requirement: &70149936901760 !ruby/object:Gem::Requirement
16
+ requirement: &70189384326480 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: 3.0.0
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70149936901760
24
+ version_requirements: *70189384326480
25
25
  description: Rails mass assignment protection in the controller
26
26
  email:
27
27
  - drew@drewolson.org
@@ -44,7 +44,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
44
44
  version: '0'
45
45
  segments:
46
46
  - 0
47
- hash: -3038972351718504170
47
+ hash: -2480936313182704854
48
48
  required_rubygems_version: !ruby/object:Gem::Requirement
49
49
  none: false
50
50
  requirements:
@@ -53,7 +53,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
53
53
  version: '0'
54
54
  segments:
55
55
  - 0
56
- hash: -3038972351718504170
56
+ hash: -2480936313182704854
57
57
  requirements: []
58
58
  rubyforge_project:
59
59
  rubygems_version: 1.8.15