title: undefined method `take' for #<ActiveRecord::QueryMethods::WhereChain:0x00000107609598>
body: <p>I am trying to select all profiles where a.blocked?(p) returns false!</p>
  
  <p>However I am getting an error.</p>
  
  <h1>in a method in model</h1>
  
  <pre><code>p = self.find_by_email(email)
  
  all.find_by { |a| a.blocked?(p) }.order('random()')
  </code></pre>
  
  <h1>error</h1>
  
  <pre><code>undefined method `take' for #&lt;ActiveRecord::QueryMethods::WhereChain:0x00000107609598&gt;
  </code></pre>