change condition of scope in model for rails 4