lib/alex_codebreaker/session.rb in alex_codebreaker-0.1.9 vs lib/alex_codebreaker/session.rb in alex_codebreaker-0.1.10

- old
+ new

@@ -35,9 +35,9 @@ @attempts_used += 1 if @attempts_used < @attempts_total - 1 end def save_statistic @time = Time.new - File.open(AlexCodebreaker::FilesConfig.new.default_path, 'a') { |file| file.write(to_yaml) } + File.open(AlexCodebreaker.configuration.storage_path, 'a') { |file| file.write(to_yaml) } end end end