title: uninitialized constant when using module in custom initializer
body: <p>I'm working on a Rails (3.2) app and I need to execute some tasks when the app boots.</p>
  
  <p>Since I want to keep the logic in a separate file I have also create lib/helinium.rb that looks like (with dummy run method)</p>
  
  <pre><code>class Helinium
    def self.run
      puts "running ...."
    end
  end
  </code></pre>
  
  <p>And I have created a simple  initializer file config/initializers/perform_checks.rb</p>
  
  <pre><code>Helinium.run
  </code></pre>
  
  <p>And everything seems fine.
  Now I wish to put the Helinium class within a module so the two files look respectively like</p>
  
  <pre><code>module Elemens
    class Helinium
        def self.run
          puts "running ...."
        end
    end
  end
  </code></pre>
  
  <p>and </p>
  
  <pre><code>Elemens::Helinium.run
  </code></pre>
  
  <p>but when I try to boot the app I get </p>
  
  <p><strong>uninitialized constant Elemens (NameError)</strong></p>
  
  <p>Am I missing something here? Why the module is not found?</p>
  
  <p>Thanks and have a nice day.</p>