lib/rom/sql/gateway.rb in rom-sql-3.0.1 vs lib/rom/sql/gateway.rb in rom-sql-3.1.0
- old
+ new
@@ -232,9 +232,12 @@
connection.extension(*extensions)
# this will be default in Sequel 5.0.0 and since we don't rely
# on dataset mutation it is safe to enable it already
connection.extension(:freeze_datasets) unless RUBY_ENGINE == 'rbx'
+
+ # for ROM::SQL::Relation#nullify
+ connection.extension(:null_dataset)
end
# @api private
def transaction_runner(_)
ROM::SQL::Transaction.new(connection)