cancancan_resource_controller 1.1.2 → 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: cbc8db66f3f0e364734f43f8c04182b3873cd4225d0f65317c5eac9dd7a2cf8b
4
- data.tar.gz: 8029c9a3d8f99f09fb59334d90ac20e2804eca87c356d8ce0b62c49c9c5e6683
3
+ metadata.gz: 9ddc5f17bdbea84110a25992273ce43df72aafaa8482064107bf9205f13daad3
4
+ data.tar.gz: f5061f1fb87828efc35cf8cc948c52f39b82ce5e75d90793169d5c3df45c91e3
5
5
  SHA512:
6
- metadata.gz: 937c3eec870a1666b17da0424ba8ac388302da1ca7bcaaeabd2bd2b23887c9f6917dfac6c5456dac1ba6b2ff1f417fa834b86857b0ea9a1fdd70df15ad1f6635
7
- data.tar.gz: 68bd48ab82b33f65b2b41ff2bdcbb55b616130b7a99f308c9cc91b878fc9210b51aacd4d39a211892fc1e8501b5cab6edf87751edde2af77761dacda0a73c0b8
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 = '1.0.2'
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: 1.1.2
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