title: Rails - after_initialize or initializer
body: <p>Whenever my Rails 4 application loads after a deployment, I want to make a REST APi call to another application to tell it my app is ready and kick off some tests.</p>
  
  <p>I was initially going to do this in the initialzers folder, but then I figured that it executes this stuff <em>while</em> the app is initializing and the app may not be fully initialized, so if it kicks off some tests, it may fail.</p>
  
  <p>Then I read about the after_initialize, but I'm not sure how to use it and where the code should go to make the rest call after the app is fully loaded?</p>
  
  <p>Can some one help?</p>
  
  <p>Here is the code I want to run when the app has loaded:</p>
  
  <pre><code>if Rails.env.dev?
     response = HTTParty.post(the_rest_url,
                    {
                      :basic_auth =&gt; @auth
                    })
      puts response.message
  </code></pre>