title: What is the syntax for referring to named scopes within Squeel?
body: <p>Is there a way, using Squeel, to refer to already existing scopes?</p>
  
  <p>Consider the following:</p>
  
  <pre><code>scope :continuous, where{ job_type_id == 1 }
  scope :standard, where{ job_type_id == 2 }
  
  scope :active, where{ (job_status_id == 2) &amp; ((job_type_id == 1) | ((job_type_id == 2) &amp; (date_start &gt; Time.now) &amp; (date_end &lt; Time.now))) }
  </code></pre>
  
  <p>All three scopes work properly, but the logic from the first two (<code>continuous</code> and <code>standard</code>) are duplicated within the third, which is what I'd like to avoid, by doing something like:</p>
  
  <pre><code>scope :active, where{ (job_status_id == 2) &amp; (continuous | (standard &amp; (date_start &gt; Time.now) &amp; (date_end &lt; Time.now))) }
  </code></pre>
  
  <p>... except that I can't find the correct syntax in the Squeel DSL for referring to named scopes.</p>
  
  <p>Is there a way to do what I'd like, or do I just need to be explicit?</p>