mirror of https://github.com/rails/rails
Add `finalize` to NullSession so it quacks like a Session
This commit is contained in:
parent
d21345baf0
commit
3694e16335
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue