removed attr_accessible and added lambda for default_scope for rails4