lib/i18n/js/middleware.rb in i18n-js-3.0.0.rc9 vs lib/i18n/js/middleware.rb in i18n-js-3.0.0.rc10
- old
+ new
@@ -29,10 +29,11 @@
end
end
end
def save_cache(new_cache)
- FileUtils.mkdir_p(cache_dir)
+ # path could be a symbolic link
+ FileUtils.mkdir_p(cache_dir) unless File.exists?(cache_dir)
File.open(cache_path, "w+") do |file|
file << new_cache.to_yaml
end
end