とにかく極力Catalystに依存しないようにモジュールを作って、Catalystから利用する場合はCatalyst::Model::AdaptorでModel化しまくりなんだけどいいのかなコレ。 Modelの数がエライことになってきたんだけどそんなもんかなぁ。やっぱり皆さんもModelりまくり? あとModelの引数変換のメソッド名よく忘れるのでついでにメモ。 package MyApp::Model::DateTime; use strict; use warnings; use base 'Catalyst::Model::Factory'; __PACKAGE__->config( class => 'DateTime', constructor => 'now', ); sub prepare_arguments { my ( $self, $c) = @_; return my