aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record.rb
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2009-10-19 19:00:48 -0700
committerJeremy Kemper <jeremy@bitsweat.net>2009-10-19 19:00:48 -0700
commit27670363926ee341078aa69ae27204d7338037f5 (patch)
tree28cd7b073bf5f1f939547aca476e0a53e901ecce /activerecord/lib/active_record.rb
parentc9cd10c4fa77aedb9116105d4d3c4d5684af4e1c (diff)
downloadrails-27670363926ee341078aa69ae27204d7338037f5.tar.gz
rails-27670363926ee341078aa69ae27204d7338037f5.tar.bz2
rails-27670363926ee341078aa69ae27204d7338037f5.zip
Use bundled env for tests only
Diffstat (limited to 'activerecord/lib/active_record.rb')
-rw-r--r--activerecord/lib/active_record.rb13
1 files changed, 4 insertions, 9 deletions
diff --git a/activerecord/lib/active_record.rb b/activerecord/lib/active_record.rb
index 8f118a6057..88becfb482 100644
--- a/activerecord/lib/active_record.rb
+++ b/activerecord/lib/active_record.rb
@@ -21,16 +21,11 @@
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#++
-bundled = "#{File.dirname(__FILE__)}/../vendor/gems/environment"
-if File.exist?("#{bundled}.rb")
- require bundled
-else
- activesupport_path = "#{File.dirname(__FILE__)}/../../activesupport/lib"
- $:.unshift(activesupport_path) if File.directory?(activesupport_path)
+activesupport_path = "#{File.dirname(__FILE__)}/../../activesupport/lib"
+$:.unshift(activesupport_path) if File.directory?(activesupport_path)
- activemodel_path = "#{File.dirname(__FILE__)}/../../activemodel/lib"
- $:.unshift(activemodel_path) if File.directory?(activemodel_path)
-end
+activemodel_path = "#{File.dirname(__FILE__)}/../../activemodel/lib"
+$:.unshift(activemodel_path) if File.directory?(activemodel_path)
require 'active_support'
require 'active_model'