title: Rails non hash conditions lost table reference
body: <p>When using array or string conditions inside Rails query, for example: </p>
  
  <p>Scope in Location model: </p>
  
  <pre><code>scope :name_like, -&gt;(keyword) {where("name ilike ?", keyword)}
  </code></pre>
  
  <p>It will have problem when using it with join table who also has column <code>name</code>. It is like:</p>
  
  <pre><code>Location.joins(:users).name_like('main')
  </code></pre>
  
  <p>It will report ambiguous column name conflicts at <code>name</code>. </p>
  
  <p>How should I address this issue, thanks!</p>