rails scopes and W