Using conditionals in one line in rails
<p>Is this a valid way to impose a condition on a statement? I was having trouble using multiple &amp;&amp;'s or ||'s when using it in one line the other day.</p>

<pre><code>@sales_opportunities &lt;&lt; auction unless auction.company == current_user || !(auction.bids &amp; current_user.bids).empty? || !auction.condition.include?(part.condition)
</code></pre>