title: Cannot include module in model
body: <p>I'm using</p>
  
  <pre><code>Ruby version              1.8.7
  Rails version             3.0.3
  </code></pre>
  
  <p>I have a method called alive in every model of my rails app:</p>
  
  <pre><code>  def alive
      where('deleter is null')  
    end   
  </code></pre>
  
  <p>I don't want to copy this code in every model so I made a /lib/life_control.rb</p>
  
  <pre><code>module LifeControl    
    def alive
      where('deleter is null')  
    end   
  
    def dead
      where('deleter is not null')  
    end    
  end
  </code></pre>
  
  <p>and in my model (for example client.rb) I wrote:</p>
  
  <pre><code>class Client &lt; ActiveRecord::Base
    include LifeControl   
  end
  </code></pre>
  
  <p>and in my config/enviroment.rb I wrote this line:</p>
  
  <pre><code>require 'lib/life_control'
  </code></pre>
  
  <p>but now I get a no method error:</p>
  
  <pre><code>NoMethodError in
  ClientsController#index
  
  undefined method `alive' for
  #&lt;Class:0x10339e938&gt;
  
  app/controllers/clients_controller.rb:10:in
  `index'
  </code></pre>
  
  <p>what am I doing wrong?</p>