Permalink
Browse files

Merge pull request #9669 from senny/rails_method_missing_call

config.ru uses the effective Rack app
  • Loading branch information...
2 parents 341f9a0 + 9b5c085 commit 0053c21019494fc3f5d14a11062e633bdb23bd2f @jeremy jeremy committed Mar 18, 2013
@@ -42,6 +42,7 @@ def initialize(*)
set_environment
end
+ # TODO: this is no longer required but we keep it for the moment to support older config.ru files.
def app
@app ||= begin
app = super
@@ -1,4 +1,4 @@
# This file is used by Rack-based servers to start the application.
require ::File.expand_path('../config/environment', __FILE__)
-run <%= app_const %>
+run Rails.application

0 comments on commit 0053c21

Please sign in to comment.