moderate_parameters 0.2.0 → 0.2.1

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: 025154d5fcf0e85640487bb165610bc71b9c57337bdc38f6dfb6180e5446a66a
4
- data.tar.gz: 4e6ddfbc51cd37e463e01fee38b4ab167c9c391aeb2d5e3674ef5624c5dac353
3
+ metadata.gz: 40cf0a80d0a76ca34637f1189efc5b17bd1e7ed176bef8f39f64a6216eebe020
4
+ data.tar.gz: 8176b21e083b2d08f0b009224325a9628b3900b487f14295736e60cc1fbd9a23
5
5
  SHA512:
6
- metadata.gz: 9785b2538bfec4f143b9acfe1391f696e95e43bb4e837cc030a7669f1cf5c920157a0035aa8fa8ee7b9c3363712d8b71bac623b5f518fe529b8778e0c7246627
7
- data.tar.gz: 53d7b1d10bff242410ca415b4f3e2c3aefa11eada31c7db50c1c4b3dd9dfa90e0a52ed1bccb88e52b20097bd330eacca811e10d4fe1d268345b8a69150506191
6
+ metadata.gz: 552e33f7a1d3e52218e86a61ab97e4155c76b3b8d349189f0d61f0f2b3ebd3e96f3622b5edf154b256b35bbac40329907735d83fc86500c13fcce91e7883d5a4
7
+ data.tar.gz: 734fa6326e0b047e9d5f2091f27018c8d07db331239338750300c37259086336729ef277152cad9369001b77a9d741d53400ed0dc65436b1da71be1b2f145858
@@ -34,7 +34,7 @@ module ModerateParameters
34
34
  value.is_a?(Array) || value.is_a?(Parameters)
35
35
  end
36
36
 
37
- EMPTY_HASH = {}
37
+ EMPTY_HASH ||= {}
38
38
  def cust_hash_filter(params, filter, controller_name, action)
39
39
  filter = filter.with_indifferent_access
40
40
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ModerateParameters
4
- VERSION = '0.2.0'
4
+ VERSION = '0.2.1'
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.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kyle Boe