make attachment attr_accessible