lib/data_base/attachment/storage.rb in lipsiadmin-3.3.4 vs lib/data_base/attachment/storage.rb in lipsiadmin-3.4.0

- old
+ new

@@ -203,15 +203,12 @@ @queued_for_delete = [] end def find_credentials(creds) case creds - when File: - YAML.load_file(creds.path) - when String: - YAML.load_file(creds) - when Hash: - creds + when File then YAML.load_file(creds.path) + when String then YAML.load_file(creds) + when Hash then creds else raise ArgumentError, "Credentials are not a path, file, or hash." end end private :find_credentials \ No newline at end of file