<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1499,6 +1499,19 @@ module ActiveRecord #:nodoc:
         &quot;(#{segments.join(') AND (')})&quot; unless segments.empty?
       end
 
+      # XXX: Merges conditions so that the result is a valid +condition+
+      def merge_conditions_with_or(*conditions)
+        segments = []
+
+        conditions.each do |condition|
+          unless condition.blank?
+            sql = sanitize_sql(condition)
+            segments &lt;&lt; sql unless sql.blank?
+          end
+        end
+        &quot;(#{segments.join(') OR (')})&quot; unless segments.empty?
+      end
+
       private
         def find_initial(options)
           options.update(:limit =&gt; 1)</diff>
      <filename>vendor/rails/activerecord/lib/active_record/base.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>b8d4cb3ef90345ece055cad43175eae0ffd12e8d</id>
    </parent>
  </parents>
  <author>
    <name>Lennart Koopmann</name>
    <email>lennart@linux.jimdo.office</email>
  </author>
  <url>http://github.com/lennartkoopmann/Graylog/commit/29f3acc0d021e0fa0305f567f06fa05e3a56bcb0</url>
  <id>29f3acc0d021e0fa0305f567f06fa05e3a56bcb0</id>
  <committed-date>2009-10-28T05:05:02-07:00</committed-date>
  <authored-date>2009-10-28T05:04:36-07:00</authored-date>
  <message>This uber-dirty hack was lost in the last Rails freeze. Blacklist view is working again</message>
  <tree>ec12f6929bae744dba38df76057b7469609371b9</tree>
  <committer>
    <name>Lennart Koopmann</name>
    <email>lennart@linux.jimdo.office</email>
  </committer>
</commit>
