Skip to content

Commit

Permalink
Fix issues with rubyzip 2.4+ create option
Browse files Browse the repository at this point in the history
  • Loading branch information
westonganger committed Jan 18, 2025
1 parent f8eae42 commit fca6119
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/rails_i18n_manager/translation_key.rb
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def self.export_to(app_name: nil, zip: false, format: :yaml)
return nil
end

zip_file = Zip::File.open(temp_file, create: !File.exist?(temp_file)) do |zipfile|
zip_file = Zip::File.open(temp_file, create: true) do |zipfile|
files_to_write.each do |file|
zipfile.add(file.sub(base_folder_path, "translations/"), file)
end
Expand Down

0 comments on commit fca6119

Please sign in to comment.