mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04: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:
committed by
Jeremy Kemper
parent
6193be26ce
commit
eca46e3102
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user