Why not simply <code>params[:ref] or 'master'</code>?