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

- old
+ new

@@ -34,9 +34,10 @@ def check_attempts @attempts_used += 1 if @attempts_used < @attempts_total - 1 end def save_statistic - File.open(AlexCodebreaker::Modules::Files::STATS_FILE, 'a') { |file| file.write(to_yaml) } + @time = Time.new + File.open(AlexCodebreaker::FilesConfig.new.default_path, 'a') { |file| file.write(to_yaml) } end end end