Add `finalize` to NullSession so it quacks like a Session

This commit is contained in:
Lee Quarella 2021-02-18 07:28:13 -05:00
parent d21345baf0
commit 3694e16335
1 changed files with 4 additions and 1 deletions

View File

@ -7,6 +7,9 @@ module ActiveRecord
def active?
true
end
def finalize
end
end
end
@ -50,7 +53,7 @@ module ActiveRecord
end
def finalize_session
@current_session.finalize if @current_session.respond_to?(:finalize)
@current_session.finalize
@current_session = NullSession
end
end