Skip to content
Browse files

Fix breakpointing by differenciating between gem and not

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@112 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 5ae593f commit 9fe6d61b848a220a91a118daea0ceb02e5f4d3aa @dhh dhh committed
Showing with 7 additions and 1 deletion.
  1. +7 −1 railties/bin/breakpointing
View
8 railties/bin/breakpointing
@@ -1,3 +1,9 @@
#!/usr/local/bin/ruby
-require File.dirname(__FILE__) + '/../config/environment'
+begin
+ require 'rubygems'
+ require_gem 'rails'
+rescue LoadError
+ require File.dirname(__FILE__) + '/../vendor/railties/lib/breakpoint'
+end
+
require 'breakpoint_client'

0 comments on commit 9fe6d61

Please sign in to comment.
Something went wrong with that request. Please try again.