diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2011-02-28 15:47:03 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-02-28 15:47:25 -0800 |
commit | 19c763f7831e08606e6b4fa516f5ad3b00c6428f (patch) | |
tree | f95b53756998ab918fa2ad93ba63e4b1f94bc1af /railties/lib/rails/commands | |
parent | 7112cf5e021d8da7c4e073a4e2d2a4afb10671ec (diff) | |
download | rails-19c763f7831e08606e6b4fa516f5ad3b00c6428f.tar.gz rails-19c763f7831e08606e6b4fa516f5ad3b00c6428f.tar.bz2 rails-19c763f7831e08606e6b4fa516f5ad3b00c6428f.zip |
reduce two method calls per request, 1 to method_missing and one to send
Diffstat (limited to 'railties/lib/rails/commands')
-rw-r--r-- | railties/lib/rails/commands/server.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/railties/lib/rails/commands/server.rb b/railties/lib/rails/commands/server.rb index c3927b6613..e447209242 100644 --- a/railties/lib/rails/commands/server.rb +++ b/railties/lib/rails/commands/server.rb @@ -42,6 +42,10 @@ module Rails set_environment end + def app + @app ||= super.instance + end + def opt_parser Options.new end |