lib/unified_settings/handlers/credentials.rb in unified_settings-0.1.0 vs lib/unified_settings/handlers/credentials.rb in unified_settings-0.1.1

- old
+ new

@@ -27,14 +27,14 @@ def get(key, case_sensitive: nil) key_arr = to_symbol_array(key) case_sensitive = case_sensitive?(case_sensitive) val = Rails.application.credentials.dig(*key_arr) - return val if val + return val unless val.nil? return nil if case_sensitive val = Rails.application.credentials.dig(*key_arr.map(&:downcase)) - return val if val + return val unless val.nil? Rails.application.credentials.dig(*key_arr.map(&:upcase)) end end end