title: Rails Callback: Use if more than once as conditional in a callback
body: <p>I am using Rails 3.2.19 and am having issues when using more than one <code>if</code> as a conditional in a callback.</p>
  
  <p>The following mixed double condition works (evaluates first_condtion and second_condition)</p>
  
  <p><code>after_save :after_save_method, unless: :first_condition?, if: :second_condition?</code></p>
  
  <p>But if I use two <code>if</code> conditions the after_save_method is executed everytime. (It seems like is taking only the last condition)</p>
  
  <p><code>after_save :after_save_method, if: :first_condition?, if: :second_condition?</code></p>
  
  <p>I  also tried to combine the two conditions with '&amp;&amp;' and that didn't work. </p>
  
  <p><code>after_save :after_save_method, if: :first_condition? &amp;&amp; :second_condition?</code></p>
  
  <p>Why can't I use <code>if</code> more than once?</p>
  
  <p>The apidoc has an example with unless and if at <a href="http://edgeguides.rubyonrails.org/active_record_callbacks.html#multiple-conditions-for-callbacks" rel="nofollow">http://edgeguides.rubyonrails.org/active_record_callbacks.html#multiple-conditions-for-callbacks</a>, but does not say anything about not allowing two "ifs."</p>
  
  <p>My solution for this was to pull all the necessary code into a method and only evaluates that method, but I just want to make sure about the <code>if</code> stuff.</p>