1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Move setting of integration session to constructor.

This allows us to not `||=` in `before_setup`.
This commit is contained in:
Sam Phippen 2016-08-21 14:08:59 +01:00
parent a887c9cbb0
commit 25c2bde711

View file

@ -420,9 +420,13 @@ module ActionDispatch
attr_reader :app
def initialize(*args, &blk)
super(*args, &blk)
@integration_session = nil
end
def before_setup # :nodoc:
@app = nil
@integration_session ||= nil
super
end