Updating Rails' scope snippet