lib/modules/storage.rb in codebreaker-Bulatkin-0.2.0 vs lib/modules/storage.rb in codebreaker-Bulatkin-0.2.1

- old
+ new

@@ -11,10 +11,10 @@ data = load_database << results write_data(data) end def load_database - YAML.safe_load(File.read(file_path)) + YAML.load(File.read(file_path)) end def sort_player create_storage unless File.exist?(file_path) load_database.sort_by { |game| [game[:difficulty], game[:attempts_used], game[:hints_used]] }