Skip to content

Commit

Permalink
Fix Hash.new warning in Ruby 3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
flash-gordon committed Jan 9, 2024
1 parent c0afe55 commit 497bad2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions changelog.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
---
- version: 3.6.2
summary:
date: 2024-01-09
fixed:
- "Fix Hash.new warning in Ruby 3.3 (@flash-gordon)"
- version: 3.6.1
summary:
date: 2022-11-22
Expand Down
2 changes: 1 addition & 1 deletion lib/rom/sql/relation/reading.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class Relation < ROM::Relation
# @api public
module Reading
# Row-level lock modes
ROW_LOCK_MODES = Hash.new(update: 'FOR UPDATE'.freeze).update(
ROW_LOCK_MODES = Hash.new({ update: "FOR UPDATE" }).update(
# https://www.postgresql.org/docs/current/static/sql-select.html#SQL-FOR-UPDATE-SHARE
postgres: {
update: 'FOR UPDATE'.freeze,
Expand Down

0 comments on commit 497bad2

Please sign in to comment.