add attr_accessible support for base model