- $classmeta->{columns} ||= [ $class->display_columns ];
- $classmeta->{list_columns} ||= [ $class->list_columns ];
- $classmeta->{colnames} ||= { $class->column_names };
+ $classmeta->{columns} ||= [ $class->display_columns ] if ($class->can('display_columns'));
+ $classmeta->{list_columns} ||= [ $class->list_columns ] if ($class->can('list_columns'));
+ $classmeta->{colnames} ||= { $class->column_names } if ($class->can('column_names'));