is null fix for scoped values + rails >= 3.1 support