Permalink
Browse files

Don't use alias_method_chain. Use alias_method directly. Fixes issue #41

.
  • Loading branch information...
1 parent 95fcd7a commit d773c27a9a4b49a2aa5a8f0d9fba23a6d6987aba @FooBarWidget FooBarWidget committed Apr 29, 2008
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/passenger/application_spawner.rb
@@ -250,7 +250,8 @@ def load_environment_with_passenger
load_environment_without_passenger
end
- alias_method_chain :load_environment, :passenger
+ alias_method :load_environment_without_passenger, :load_environment
+ alias_method :load_environment, :load_environment_with_feature
end
end
require 'config/environment'

0 comments on commit d773c27

Please sign in to comment.