title: I18n in Rails module
body: <p>I would like to use I18n in a Rails utility module which is in my lib directory.  The utility method gets invoked in a mailer.</p>
  
  <p>The module is defined like</p>
  
  <pre><code>module MyUtils
    def self.build_collection_full_email(collection)
      I18n.t('app_name') + " &lt;" + self.build_collection_email(collection) + "&gt;"
    end
  end
  </code></pre>
  
  <p>The mailer has a call like this:</p>
  
  <pre><code>sender_name = MyUtils.build_collection_full_email(@collection)
  </code></pre>
  
  <p>However, when this gets run in the context of the mailer, I get an error     </p>
  
  <pre><code>NoMethodError: undefined method `I18n' for Rails:Module
  </code></pre>
  
  <p>It seems like I need to include a dependency so that the utility method knows how find the I18n module, but I haven't been able to find this in the documentation for I18n.  </p>