Skip to content
Browse files

Use non-deprecated Rails.application instead of ActionController::Dis…

…patcher.new and ActionDispatch::Integration instead of ActionController::Integration for console.

[#4072 state:committed]

Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
  • Loading branch information...
1 parent 6193be2 commit eca46e3102399dc15f0462188e129e1ee25bd69f @siong1987 siong1987 committed with jeremy Feb 28, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 railties/lib/rails/console/app.rb
View
4 railties/lib/rails/console/app.rb
@@ -17,8 +17,8 @@ def app(create=false)
# 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

0 comments on commit eca46e3

Please sign in to comment.
Something went wrong with that request. Please try again.