]> git.pld-linux.org Git - packages/ruby-activerecord.git/commitdiff
- added
authoraredridel <aredridel@pld-linux.org>
Fri, 29 Aug 2008 23:03:49 +0000 (23:03 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    ruby-activerecord-rubygems.patch -> 1.1

ruby-activerecord-rubygems.patch [new file with mode: 0644]

diff --git a/ruby-activerecord-rubygems.patch b/ruby-activerecord-rubygems.patch
new file mode 100644 (file)
index 0000000..ed99964
--- /dev/null
@@ -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'
This page took 0.044358 seconds and 4 git commands to generate.