From 9fe6d61b848a220a91a118daea0ceb02e5f4d3aa Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Fri, 10 Dec 2004 18:38:27 +0000 Subject: [PATCH] Fix breakpointing by differenciating between gem and not git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@112 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- railties/bin/breakpointing | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/railties/bin/breakpointing b/railties/bin/breakpointing index a7c601f872..a3e325fe04 100644 --- a/railties/bin/breakpointing +++ b/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'