title: How to alias a class method in rails model?
body: <p>I want to alias a class method on one of my Rails models.</p>
  
  <pre><code>  def self.sub_agent
     id = SubAgentStatus.where(name: "active").first.id
     where(type: "SubAgent",sub_agent_status_id: id).order(:first_name)    
    end
  </code></pre>
  
  <p>If this was an instance method, I would simply use <code>alias_method</code>, but that doesn't work for class methods. How can I do this without duplicating the method?</p>