lib/easy-settings/path_source.rb in easy-settings-1.0.0 vs lib/easy-settings/path_source.rb in easy-settings-1.0.1
- old
+ new
@@ -21,11 +21,11 @@
keys = variable.to_s.split(separator)
keys.map!{ |key| key.send(converter) } if converter
leaf = keys[0...-1].inject(data){ |h, key| h[key] ||= {} }
leaf[keys.last] = parse_values ? EasySettings::Coercion.new(value).run : value
- rescue NoMethodError => e
- raise "Invalid name converter: #{converter}"
end
end
+ rescue NoMethodError => e
+ raise "Invalid name converter: #{converter}"
end
end