SOURCES: ruby-ActiveRecord-rubygems.patch (NEW) - added

aredridel aredridel at pld-linux.org
Sat Aug 30 01:03:54 CEST 2008


Author: aredridel                    Date: Fri Aug 29 23:03:54 2008 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- added

---- Files affected:
SOURCES:
   ruby-ActiveRecord-rubygems.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/ruby-ActiveRecord-rubygems.patch
diff -u /dev/null SOURCES/ruby-ActiveRecord-rubygems.patch:1.1
--- /dev/null	Sat Aug 30 01:03:55 2008
+++ SOURCES/ruby-ActiveRecord-rubygems.patch	Sat Aug 30 01:03:49 2008
@@ -0,0 +1,25 @@
+diff -Nur activerecord-2.1.0.orig/lib/active_record.rb activerecord-2.1.0.rubygems/lib/active_record.rb
+--- activerecord-2.1.0.orig/lib/active_record.rb	2008-05-31 19:52:51.000000000 -0600
++++ activerecord-2.1.0.rubygems/lib/active_record.rb	2008-08-29 17:02:32.000000000 -0600
+@@ -21,20 +21,7 @@
+ # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ #++
+ 
+-$:.unshift(File.dirname(__FILE__)) unless
+-  $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
+-
+-unless defined? ActiveSupport
+-  active_support_path = File.dirname(__FILE__) + "/../../activesupport/lib"
+-  if File.exist?(active_support_path)
+-    $:.unshift active_support_path
+-    require 'active_support'
+-  else
+-    require 'rubygems'
+-    gem 'activesupport'
+-    require 'active_support'
+-  end
+-end
++require 'active_support'
+ 
+ require 'active_record/base'
+ require 'active_record/named_scope'
================================================================


More information about the pld-cvs-commit mailing list