diff options
author | Yehuda Katz <wycats@Yehuda-Katz.local> | 2009-11-16 13:58:08 -0800 |
---|---|---|
committer | Yehuda Katz <wycats@Yehuda-Katz.local> | 2009-11-16 13:58:08 -0800 |
commit | c2997017f79321a8d90af84b1de35f87e3dd2445 (patch) | |
tree | 748a22a5567419ef4c88d093136a351fbdb4e0ea /railties/lib/rails/application.rb | |
parent | 2675ba9ef4ae1839f721aff77c255ee1cb8ac7ac (diff) | |
download | rails-c2997017f79321a8d90af84b1de35f87e3dd2445.tar.gz rails-c2997017f79321a8d90af84b1de35f87e3dd2445.tar.bz2 rails-c2997017f79321a8d90af84b1de35f87e3dd2445.zip |
Make script/server work with correct application.rb
Diffstat (limited to 'railties/lib/rails/application.rb')
-rw-r--r-- | railties/lib/rails/application.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/railties/lib/rails/application.rb b/railties/lib/rails/application.rb index 10cba8ab6c..7c2d8eab67 100644 --- a/railties/lib/rails/application.rb +++ b/railties/lib/rails/application.rb @@ -3,6 +3,11 @@ module Rails include Initializable class << self + def inherited(klass) + Rails.application ||= klass unless klass.name =~ /Rails/ + super + end + # Stub out App initialize def initialize! new |