moderate_parameters 0.2.5 → 0.2.6

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: e3c2783d2ae370d8638a045ee3ee1528d680bbdea65ff3b3e6b73d6386a618db
4
- data.tar.gz: 18d2184a652a03ef7539844d8e62668df1237bccc3377192235f260ca4875ff5
3
+ metadata.gz: fa022d8afad78e0d873a348c3c6b904126bb4667a1a121ff3f649f2ac1279f25
4
+ data.tar.gz: 4d2f9811d68673a8edfbb96eda872950c34f199d0f6fb0c856ab5dbaecc2f357
5
5
  SHA512:
6
- metadata.gz: f485fce9d6776ed10b5353752d25e28f44a36e409779d02ee417a2f4c0acab4c7636407d53ee61d3094d5658093a061ddbfd966386c0a412ca780ec7df63d1dc
7
- data.tar.gz: 2d10f7f4034840288875842171ffb8b6d7afbd2291e1d99b69951ade1a59c86f03ca05a3dcc2c5a24324d4cb894447fb5b2e24f951880fc044f3a70149b25878
6
+ metadata.gz: 27f5bd24d222651ce688faf335d6c387f216fd6bf8a6a225654cf4085e5f03deebe9249cb61f68748854b61434b899031b73a5f203e427bcd28d8338b3d1f995
7
+ data.tar.gz: e0a9b7507d86dfba2c61721c8fca95544b0dd571bf2163c28d251ebab73cbc7af890c8bea04717f0c54289eaffc9939fb473e6d29a67b39b3c108f3f058e62ee
@@ -11,7 +11,7 @@ module ModerateParameters
11
11
  @@breadcrumbs_enabled = false
12
12
 
13
13
  mattr_accessor :logger
14
- @@logger = ActiveSupport::Logger.new('log/moderate_parameters.log')
14
+ @@logger = nil
15
15
 
16
16
  def self.configure
17
17
  yield self
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- $moderate_parameters_logger = ModerateParameters.logger
3
+ $moderate_parameters_logger = ModerateParameters.logger || ActiveSupport::Logger.new('/dev/null')
4
4
 
5
5
  ActiveSupport::Notifications.subscribe('moderate_parameters') do |_, _, _, _, payload|
6
6
  $moderate_parameters_logger.info "#{payload[:controller]}##{payload[:action]} #{payload[:message]}"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ModerateParameters
4
- VERSION = '0.2.5'
4
+ VERSION = '0.2.6'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: moderate_parameters
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kyle Boe