title: Delegate static methods with Ruby on Rails?
body: <p>How can I use delegate to delegate a static method?</p>
  
  <p>I am trying to do the following</p>
  
  <p>e.g.</p>
  
  <pre><code>class MyThing
    def some_instance_method(a, b)
      something.some_instance_method(a, b)
    end
  
    def some_static_method(a, b)
      User.some_static_method(a, b)
    end
  end
  
  # can you write it this way???
  
  class MyThing
    delegate :some_instance_method, :to =&gt; :something
    delegate :some_static_method, :to =&gt; User
  end
  </code></pre>