title: How to use or in checking presence?
body: <p>i need to check presence of a value in an array. It can be two values i need to check with an or case if it includes in the array. I think it will be confusing from my description you will understand after you see the code below.</p>
  
  <pre><code>if user.sheet_ids.include? params[:id].to_i || params[:sheet_id].to_i
    can :show, Project
  end
  </code></pre>
  
  <p>It returns false even if sheet_id is present in the array of sheet_ids.</p>
  
  <p>user.sheet_ids is an array and i need to check if any of the value includes in this array. The method i used is not seems to be working.</p>
  
  <p>Is there any simple way of doing this. Thanks.</p>