GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Description: Rails plugin that provides the ability to soft delete models
Clone URL: git://github.com/ajh/acts_as_soft_deletable.git
make more friendly for autotest

git-svn-id: http://llama/svn/trunk/ruby/acts_as_soft_deletable@234 
bb26965d-a405-0410-8ce8-d62df5cd24e9
(no author) (author)
Thu Mar 13 12:25:37 -0700 2008
commit  bbb17068df1b850cf4773df9dd80c2e0cfc1aec1
tree    d6b6d89e626c09b3f7e4aa57bbf07fc5206ffad6
parent  cfb5d35735409fcbbcd3077d6aebdd17e7adc038
...
9
10
11
12
13
 
 
 
 
 
 
 
14
15
16
...
9
10
11
 
 
12
13
14
15
16
17
18
19
20
21
0
@@ -9,8 +9,13 @@ require 'active_record/fixtures'
0
 
0
 require 'acts_as_soft_deletable'
0
 
0
-# pulls from one of test/connections/#{adapter}/connection.rb depending on how rake setup our lib paths
0
-require 'connection'
0
+begin
0
+ # pulls from one of test/connections/#{adapter}/connection.rb depending on how rake setup our lib paths
0
+ require 'connection'
0
+rescue MissingSourceFile
0
+ # default in case our libs weren't setup
0
+ require File.join(File.dirname(__FILE__), 'connections', 'mysql', 'connection')
0
+end
0
 
0
 ActiveRecord::Base.logger = Logger.new File.join(File.dirname(__FILE__),"..","tmp","test.log")
0
 

Comments

    No one has commented yet.