title: Write Ruby Hash with duplicate values without repeating value
body: <p>I have the following code in a rails controller: </p>
  
  <pre><code>@users = User.where(["first_name = :first_name or
                      last_name = :last_name or
                      company = :company",
                      { first_name: term, last_name: term,
                      company: term }])
  </code></pre>
  
  <p>Term is <code>term = params[:search]</code> </p>
  
  <p>I don't like that I'm repeating <code>term</code> </p>
  
  <pre><code>{ first_name: term, last_name: term,
                          company: term }
  </code></pre>
  
  <p>is there a DRYER way to accomplish this? </p>
  
  <p>Thank you!</p>