title: Access named scope dynamically
body: <p>If I have 3 named scopes like </p>
  
  <pre><code>class Foo
  
  scope :test1, ...
  scope :test2, ...
  scope :test3, ...
  </code></pre>
  
  <p>And a function</p>
  
  <pre><code>def x(variable)
  
  end
  </code></pre>
  
  <p>where variable is a string("test1","test2" or "test3")</p>
  
  <p>How can I access the named scope just by knowing that variable's value ? </p>
  
  <p>Something like <code>Foo.variable</code></p>