I followed the Rose::DB::Object tutorial on CPAN and set up three packages.
package My::DB::Object;
use My::DB;
use base qw(Rose::DB::Object);
sub init_db { My::DB->new }
package My::DB;
use base qw(Rose::DB);
...
package Motorcycle;
use base 'My::DB::Object';
__PACKAGE__->meta->setup
(
...
);
__PACKAGE__->meta->make_manager_class('motorcycles');
In the application:
package main;
use Motorcycle;
use Mojolicious::Lite;
This failed to compile with this error:
My/DB/Object did not return a true value <eval 2> line 2…
Regards and thanks.
The last line in any module should be