Skip to content

Commit f5e0264

Browse files
committed
Add default_isolation_level on NullPool
1 parent e7d2d11 commit f5e0264

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ module AbstractPool # :nodoc:
1414
class NullPool # :nodoc:
1515
include ConnectionAdapters::AbstractPool
1616

17-
class NullConfig # :nodoc:
17+
class NullConfig
1818
def method_missing(...)
1919
nil
2020
end
2121
end
22-
NULL_CONFIG = NullConfig.new # :nodoc:
22+
NULL_CONFIG = NullConfig.new
2323

2424
def initialize
2525
super()
@@ -48,6 +48,11 @@ def db_config
4848
def dirties_query_cache
4949
true
5050
end
51+
52+
def default_isolation_level; end
53+
def default_isolation_level=(isolation_level)
54+
raise NotImplementedError, "This method should never be called"
55+
end
5156
end
5257

5358
# = Active Record Connection Pool

0 commit comments

Comments
 (0)