-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Description
For things that you always want importing, you might consider Import::Into / Import::Base to bundle them together to avoid the boilerplate.
Might also be nice to use exported subroutines instead of class method calls for the DBIC stuff plus DBIx::Class::Candy for declaring DBIC specific bits.
search()->single is vomit worthy, instead declare a unique constraint in your result class, which will make DBIC deploy the right thing, and you'll be able to use find().
also it seems strange to me not to have the uri_part by default but using 'id' by default, and then you could auto-generate routes that already have the correct redirect (plus I'd abstract out the redirect generation a bit but I guess that's a taste thing)
Metadata
Metadata
Assignees
Labels
No labels