title: How to chain scope queries with OR instead of AND?
body: <p>I'm using Rails3, ActiveRecord</p>
  
  <p>Just wondering how can I chain the scopes with OR statements rather than AND.</p>
  
  <p>e.g. </p>
  
  <pre><code>Person.where(:name =&gt; "John").where(:lastname =&gt; "Smith")
  </code></pre>
  
  <p>That normally returns:</p>
  
  <pre><code>name = 'John' AND lastname = 'Smith'
  </code></pre>
  
  <p>but I'd like: </p>
  
  <pre><code>`name = 'John' OR lastname = 'Smith'
  </code></pre>