cancancan_resource_controller 2.0.0 → 2.0.2

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
  SHA256:
3
- metadata.gz: d0568e01a0d4c6c54da23f5222744db7ddb707ea7665829db91eaa1cf75680e4
4
- data.tar.gz: b3d63361898c8c91f429cd75aee4923c1716b68c09c482ba0785080d9314cf0b
3
+ metadata.gz: 9ddc5f17bdbea84110a25992273ce43df72aafaa8482064107bf9205f13daad3
4
+ data.tar.gz: f5061f1fb87828efc35cf8cc948c52f39b82ce5e75d90793169d5c3df45c91e3
5
5
  SHA512:
6
- metadata.gz: d5a0e938fcd3eb7d2a5483e658b75cf4cb28e12f1aae9b1455b006b8c3d455001f5fd6aa4836d83ad51dc645124c5c4a36e6ad4b823945077a1a200448a09f28
7
- data.tar.gz: a4f8c3efc19b10d56ad8073b95de0cdea429fc55709ae44e5b258f86c2210124fc22bd982559ddb94a8bab1109a97bcb9300680c105c4277879ba17e7d4ed4f1
6
+ metadata.gz: 3952e7f72d32d494600afb1773d8524254a44a90f047fbf09b950a1c093080760726bc1cad74c7735819043dfd4f4b6c53ba25ea7ece735c55e636475a660ae7
7
+ data.tar.gz: ec7f9267cbb3461ff23164b5d6945ae77758a5ccf8a7b97b77e73b2df76e59d31a997f8c0284ced9c154b8f49a09aef851a2a593b0e921d00b64011c7757d3ae
@@ -225,7 +225,14 @@ module CanCanCan
225
225
  if param_value.is_a?(String) && !(param_value =~ REGEX_FOR_HTML_TAG_DETECTION).nil?
226
226
  # We need a better way, in the future, to specify the allowed values down to the Class and Column level.
227
227
  return ActionController::Base.helpers.sanitize(param_value, {tags: self.class::DEFAULT_PARAMETER_SANITIZER_ALLOWED_TAGS, attributes: self.class::DEFAULT_PARAMETER_SANITIZER_ALLOWED_ATTRIBS})
228
- elsif param_value.is_a?(String) || param_value.is_a?(Integer) || param_value.is_a?(Float) || param_value.nil? || [true, false].include?(param_value)
228
+ elsif (
229
+ param_value.is_a?(String) ||
230
+ param_value.is_a?(Integer) ||
231
+ param_value.is_a?(Float) ||
232
+ param_value.nil? ||
233
+ [true, false].include?(param_value) ||
234
+ param_value.is_a?(ActionDispatch::Http::UploadedFile)
235
+ )
229
236
  return param_value
230
237
  end
231
238
 
@@ -1,5 +1,5 @@
1
1
  module CanCanCan
2
2
  module AbstractResourceController
3
- VERSION = '2.0.0'
3
+ VERSION = '2.0.2'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cancancan_resource_controller
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - benjamin.dana.software.dev@gmail.com
@@ -36,14 +36,14 @@ dependencies:
36
36
  requirements:
37
37
  - - ">="
38
38
  - !ruby/object:Gem::Version
39
- version: '0'
39
+ version: 1.0.0
40
40
  type: :runtime
41
41
  prerelease: false
42
42
  version_requirements: !ruby/object:Gem::Requirement
43
43
  requirements:
44
44
  - - ">="
45
45
  - !ruby/object:Gem::Version
46
- version: '0'
46
+ version: 1.0.0
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: rails
49
49
  requirement: !ruby/object:Gem::Requirement