aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/initializer.rb
diff options
context:
space:
mode:
authorNicholas Seckar <nseckar@gmail.com>2007-04-29 07:35:22 +0000
committerNicholas Seckar <nseckar@gmail.com>2007-04-29 07:35:22 +0000
commit4ef9ad8653d60295015179f1d366e2d128c53e02 (patch)
tree074a1c0b7dc54a7c79fa4c921970bdbfe2939755 /railties/lib/initializer.rb
parent8e8fd99d7f88f35f67d46d43eea693a67e61d7ec (diff)
downloadrails-4ef9ad8653d60295015179f1d366e2d128c53e02.tar.gz
rails-4ef9ad8653d60295015179f1d366e2d128c53e02.tar.bz2
rails-4ef9ad8653d60295015179f1d366e2d128c53e02.zip
Updated initializer to only load #{RAILS_ENV}.rb once. Added deprecation warning for config.breakpoint_server.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6627 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties/lib/initializer.rb')
-rw-r--r--railties/lib/initializer.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/railties/lib/initializer.rb b/railties/lib/initializer.rb
index 11e24c503b..0a6d7a1341 100644
--- a/railties/lib/initializer.rb
+++ b/railties/lib/initializer.rb
@@ -201,6 +201,9 @@ module Rails
# is typically one of development, testing, or production.
def load_environment
silence_warnings do
+ return if @environment_loaded
+ @environment_loaded = true
+
config = configuration
constants = self.class.constants
@@ -449,6 +452,16 @@ module Rails
# a sub class would have access to fine grained modification of the loading behavior. See
# the implementation of Rails::Plugin::Loader for more details.
attr_accessor :plugin_loader
+
+ # Deprecated options:
+ def breakpoint_server(_ = nil)
+ $stderr.puts %(
+ *******************************************************************
+ * config.breakpoint_server has been deprecated and has no effect. *
+ *******************************************************************
+ )
+ end
+ alias_method :breakpoint_server=, :breakpoint_server
# Create a new Configuration instance, initialized with the default
# values.