lib/modules/storage.rb in codebreaker_kolyanjy-0.1.4 vs lib/modules/storage.rb in codebreaker_kolyanjy-0.1.5
- old
+ new
@@ -1,8 +1,8 @@
# frozen_string_literal: true
module Codebreaker
module Storage
- FILE_PATH = 'lib/data/data.yml'
+ FILE_PATH = '/lib/data/data.yml'
def save(data)
create_storage unless storage_exist?
File.open(FILE_PATH, 'w') { |file| file.write data.to_yaml }
end