Update ActiveRecord.php

add scope