title: Why is this method returning an active record relation rather than an object of the class type?
body: <p>I have a class called Node.  In that class, I have a method:</p>
  
  <pre><code>def self.random
      self.order("RANDOM()").limit(1)
  end
  </code></pre>
  
  <p>I expected that to return a Node.  In fact, the stuff it outputs to the rails console looks like it is a Node.  Except it's not!</p>
  
  <pre><code>n = Node.random
  n.class
  </code></pre>
  
  <p>gives me this:</p>
  
  <pre><code>=&gt; ActiveRecord::Relation::ActiveRecord_Relation_Node
  </code></pre>