title: When do we use the "||=" operator in Rails ? What is its significance?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/1389081/what-does-the-operator-stands-for-in-ruby">What does the operator ||= stands for in ruby?</a>  </p>
  </blockquote>
  
  
  
  <p>I am confused with the usage of <code>||=</code> operator in Rails. I couldn't locate anything useful on the web. Can anyone please guide me?</p>
  
  <p>Do let me know if there are any weblinks that you are aware of.</p>
  
  <p>I would like what the following statement means:</p>
  
  <pre><code>@_current_user ||= session[:current_user_id] &amp;&amp;
        User.find(session[:current_user_id])
  </code></pre>