title: Possible to alias a belongs_to association in Rails?
body: <p>I have a model with a <code>belongs_to</code> association:</p>
  
  <pre><code>class Car &lt; ActiveRecord::Base
    belongs_to :vendor
  end
  </code></pre>
  
  <p>So I can call <code>car.vendor</code>. But I also want to call <code>car.company</code>! So, I have the following:</p>
  
  <pre><code>class Car &lt; ActiveRecord::Base
    belongs_to :vendor
    def company
      vendor
    end
  end
  </code></pre>
  
  <p>but that doesn't solve the assignment situation <code>car.company = 'ford'</code>, so I need to create another method for that. Is there a simple <code>alias</code> mechanism I can use for associations? Can I just use <code>alias_method :company, :vendor</code> and <code>alias_method :company=, :vendor=</code>?</p>