Skip to content

Commit

Permalink
Updated initializer to only load #{RAILS_ENV}.rb once. Added deprecat…
Browse files Browse the repository at this point in the history
…ion warning for config.breakpoint_server.

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6627 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information
seckar committed Apr 29, 2007
1 parent 8e8fd99 commit 4ef9ad8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
2 changes: 2 additions & 0 deletions railties/CHANGELOG
@@ -1,5 +1,7 @@
*SVN*

* Updated initializer to only load #{RAILS_ENV}.rb once. Added deprecation warning for config.breakpoint_server. [Nicholas Seckar]

* Removed breakpointer and Binding.of_caller in favor of relying on ruby-debug by Kent Sibilev since the breakpointer has been broken since Ruby 1.8.4 and will not be coming back [DHH]

To use the new debugger, start your server with script/server --debugger and insert a call to 'debugger'
Expand Down
13 changes: 13 additions & 0 deletions railties/lib/initializer.rb
Expand Up @@ -201,6 +201,9 @@ def load_plugins
# 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

Expand Down Expand Up @@ -449,6 +452,16 @@ class Configuration
# 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.
Expand Down

0 comments on commit 4ef9ad8

Please sign in to comment.