title: Is there a way to combine named scopes into a new named scope?
body: <p>I have</p>
  
  <pre><code>class Foo &lt; ActiveRecord::Base
    named_scope :a, lambda { |a| :conditions =&gt; { :a =&gt; a } }
    named_scope :b, lambda { |b| :conditions =&gt; { :b =&gt; b } }
  end
  </code></pre>
  
  <p>I'd like</p>
  
  <pre><code>class Foo &lt; ActiveRecord::Base
    named_scope :ab, lambda { |a,b| :conditions =&gt; { :a =&gt; a, :b =&gt; b } }
  end
  </code></pre>
  
  <p>but I'd prefer to do it in a DRY fashion.  I can get the same effect by using</p>
  
  <pre><code> Foo.a(something).b(something_else)
  </code></pre>
  
  <p>but it's not particularly lovely.</p>