diff options
author | Yehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com> | 2009-09-28 17:57:36 -0700 |
---|---|---|
committer | Yehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com> | 2009-09-28 18:00:26 -0700 |
commit | 6f6a589d4b564f5db78735ad0c7225c22ced57ac (patch) | |
tree | 402a661bd4dac4b2271d67214fcb8a5cb2530654 /railties/lib/rails/core.rb | |
parent | 8ffc2e3b8de38c485fa24820208b40920dad7ae3 (diff) | |
download | rails-6f6a589d4b564f5db78735ad0c7225c22ced57ac.tar.gz rails-6f6a589d4b564f5db78735ad0c7225c22ced57ac.tar.bz2 rails-6f6a589d4b564f5db78735ad0c7225c22ced57ac.zip |
Create the application object from config/environment.rb
This is preliminary and not necessarily reflective of the
full plan.
Diffstat (limited to 'railties/lib/rails/core.rb')
-rw-r--r-- | railties/lib/rails/core.rb | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/railties/lib/rails/core.rb b/railties/lib/rails/core.rb index 4c2789746c..4be90de792 100644 --- a/railties/lib/rails/core.rb +++ b/railties/lib/rails/core.rb @@ -5,6 +5,14 @@ module Rails # --- # TODO: w0t? class << self + def application + @@application + end + + def application=(application) + @@application = application + end + # The Configuration instance used to configure the Rails environment def configuration @@configuration @@ -14,14 +22,6 @@ module Rails @@configuration = configuration end - def application - @@application - end - - def application=(application) - @@application = application - end - def initialized? @initialized || false end |