I think there is no need in refactoring in this particular case.
This, and other variations occurs errors too:
format.json { render(object_error.blank? ? (json: order) : (json: object_error, status: :unprocessable_entity) }
And it's less readable.