moderate_parameters 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/moderate_parameters/logger.rb +1 -3
- data/lib/moderate_parameters/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5fc3625227e48ca5a7ec7f64cb238fb470d32d7750bd91d40cd01479c6f17b51
|
4
|
+
data.tar.gz: f4ef23a7d0c27198a6a090b7b6cd4d802b918553472b2b651e3c7ba42d7c6d5b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 21076fb046f7cbf453628e2fbdc9e2ae2adb36cf11022407b729f29a425001158dbb92bc7dc44db349d047747dcc968ebd7b8d376cc83547e895e70f2332b9d5
|
7
|
+
data.tar.gz: 6f8254341fb9b526546f5bd245f14bcef4a09049bda7d61b50a34253efa88186aff00f4944fdf9314fbbf8db883eb703a6d3e0940b41e0ef1ca4808759c49db8
|
@@ -1,7 +1,5 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
$moderate_parameters_logger = ModerateParameters.logger || ActiveSupport::Logger.new('/dev/null')
|
4
|
-
|
5
3
|
ActiveSupport::Notifications.subscribe('moderate_parameters') do |_, _, _, _, payload|
|
6
|
-
|
4
|
+
(ModerateParameters.logger || ActiveSupport::Logger.new('/dev/null')).info "#{payload[:controller]}##{payload[:action]} #{payload[:message]}"
|
7
5
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: moderate_parameters
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kyle Boe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-01-
|
11
|
+
date: 2020-01-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionpack
|