The first line with more explicit precedence is this:
if( params[:user_id].present?) { @owner ||= User.find_by_login(params[:user_id]) }
@owner ||= ( User.find_by_login(params[:user_id]) if params[:user_id].present? )
The first line with more explicit precedence is this:
The second line is this: In other words, the first version always ran the present? method, while the second version only did so if @owner was false.