mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Use non-deprecated Rails.application instead of ActionController::Dispatcher.new and ActionDispatch::Integration instead of ActionController::Integration for console.
[#4072 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
This commit is contained in:
parent
6193be26ce
commit
eca46e3102
1 changed files with 2 additions and 2 deletions
|
@ -17,8 +17,8 @@ end
|
|||
# create a new session. If a block is given, the new session will be yielded
|
||||
# to the block before being returned.
|
||||
def new_session
|
||||
app = ActionController::Dispatcher.new
|
||||
session = ActionController::Integration::Session.new(app)
|
||||
app = Rails.application
|
||||
session = ActionDispatch::Integration::Session.new(app)
|
||||
yield session if block_given?
|
||||
session
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue