rails-settings-cached 2.3.1 → 2.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rails-settings/base.rb +3 -3
- data/lib/rails-settings/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: be7b05e634deda4d1a7b720528431277c7dcd57cace57181a84a5b02115ed412
|
4
|
+
data.tar.gz: b7dd8a8e4aec0dc80240bbcc4ecbb747896c7fd0495c0c7fc9820dd92191ec5c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 70b0c0010ee5839c6bc85e7376649bbdbdec38e492af0d57559a32df4ae658125a180f021802f0b14cee43dffa8e6daba71df4f262b06ae6f4e705dc0474d46c
|
7
|
+
data.tar.gz: 277ba14e3774bd321dd038e315496294269d008d9e07e57e42dd9f8d398e185775754ef65e4ebe257178b9f74c826f660c017ced91936da7f25153d0c59790ad
|
data/lib/rails-settings/base.rb
CHANGED
@@ -121,15 +121,15 @@ module RailsSettings
|
|
121
121
|
when :hash
|
122
122
|
value = begin
|
123
123
|
begin
|
124
|
-
|
124
|
+
YAML.load(value).to_h
|
125
125
|
rescue StandardError
|
126
126
|
eval(value).to_h
|
127
|
-
|
127
|
+
end
|
128
128
|
rescue StandardError
|
129
129
|
{}
|
130
130
|
end
|
131
131
|
value.deep_stringify_keys!
|
132
|
-
value
|
132
|
+
ActiveSupport::HashWithIndifferentAccess.new(value)
|
133
133
|
when :integer
|
134
134
|
value.to_i
|
135
135
|
when :float
|