I would like to use a DBIx resultset helper, namely DBIx::Class::Helper::ResultSet::Random
, in my Catalyst application.
The package documentation shows how it is loaded from a DBIx::Class::ResultSet
class, but as far as I can tell, I have none of those because I'm using DBIx::Class::Schema::Loader
to create the schema.
I have tried putting this __PACKAGE__->load_components('Helper::ResultSet::Random')
in my Schema::Result
, but that didn't work: Can't locate object method "rand" via package "DBIx::Class::ResultSet".
How is this supposed to be done?