X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=lib%2FMaypole.pm;h=08be2fa30621a8c5179c04ff04d37b4f492fe2e1;hb=9834e1b93cff3936e8229471fab844abe5dce736;hp=d5d932c4816a32c8e78c4650e6042ffc9b04f938;hpb=81b617ffe75c0d5924595fc5b832733c7bfbcc28;p=maypole.git diff --git a/lib/Maypole.pm b/lib/Maypole.pm index d5d932c..08be2fa 100644 --- a/lib/Maypole.pm +++ b/lib/Maypole.pm @@ -4,7 +4,7 @@ use attributes (); use UNIVERSAL::require; use strict; use warnings; -our $VERSION = "1.1"; +our $VERSION = "1.2"; __PACKAGE__->mk_classdata($_) for qw( config init_done view_object ); __PACKAGE__->mk_accessors ( qw( ar params query objects model_class args action template )); @@ -208,7 +208,7 @@ subclass the model class, and configure your class slightly differently: Then your top-level application package should change the model class: (Before calling C) - ProductDatabase->config->{model_class} = "ProductDatabase::Model"; + ProductDatabase->config->{model} = "ProductDatabase::Model"; (The C<:Exported> attribute means that the method can be called via the URL C/supersearch/...>.)