ironcamel / Dancer-Plugin-DBIC

DBIx::Class Plugin for Dancer
1 stars 13 forks source link

Make DBIx::Class::Schema::Loader an optional dependency #3

Closed fgabolde closed 11 years ago

fgabolde commented 11 years ago

Hi,

Dancer::Plugin::DBIC pulls in DBIx::Class::Schema::Loader which comes with a bunch of Lingua modules, SQL::Translator, etc. All these are not needed for a production app which will never need all those development modules.

This changeset attempts to fix this by making DCSL an optional dependency. An exception is thrown at runtime if the schema_class is not defined and DCSL is not found.

ironcamel commented 11 years ago

I love this patch. Thanks :)