Determine if an activerecord instance is within a named scope.