Skip to content

Commit

Permalink
Merge pull request #93 from symmetRE-Inc/master
Browse files Browse the repository at this point in the history
fix rails 7 compatibility
  • Loading branch information
fringd committed Feb 2, 2024
2 parents b2ca413 + 9a2ea8b commit 8d8394b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/zipline/zip_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ def to_s
end

def each(&block)
return to_enum(:each) unless block_given?

fake_io_writer = ZipTricks::BlockWrite.new(&block)
# ZipTricks outputs lots of strings in rapid succession, and with
# servers it can be beneficial to avoid doing too many tiny writes so that
Expand Down

0 comments on commit 8d8394b

Please sign in to comment.