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 +4 -4
- data/lib/cancancan/abstract_resource_controller.rb +8 -1
- data/lib/cancancan/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9ddc5f17bdbea84110a25992273ce43df72aafaa8482064107bf9205f13daad3
|
4
|
+
data.tar.gz: f5061f1fb87828efc35cf8cc948c52f39b82ce5e75d90793169d5c3df45c91e3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
|
data/lib/cancancan/version.rb
CHANGED
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.
|
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:
|
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:
|
46
|
+
version: 1.0.0
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: rails
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|