update active scope for rails 4