title: Rails: You cannot have more than one Rails::Application (RuntimeError)
body: <p>I installed a pesapal gem with an initializer file that looks like this;</p>
  
  <pre><code># Load Pesapal config file when applicatin is loaded ... the config can then be
  # accessed from PesapalRails::Application.config.yaml
  module PesapalRails
    class Application &lt; Rails::Application
      config.yaml = YAML::load(IO.read("#{Rails.root}/config/pesapal.yml"))
    end
  end
  </code></pre>
  
  <p>When i use it i get the error like this;</p>
  
  <pre><code>/usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.13/lib/rails/application.rb:63:in ``inherited'``: You cannot have more than one Rails::Application (RuntimeError)
  </code></pre>
  
  <p>With a partial trace looking like this;</p>
  
  <pre><code>from /var/www/html/webapp/config/initializers/pesapal.rb:4:in `&lt;module:PesapalRails&gt;'
  from /var/www/html/webapp/config/initializers/pesapal.rb:3:in `&lt;top (required)&gt;'
  </code></pre>