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:
parent
a887c9cbb0
commit
25c2bde711
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue