Skip to content

Commit

Permalink
Improved documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
avkhozov committed Jan 22, 2016
1 parent a9df350 commit 7a9a3e5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions Changes
@@ -1,6 +1,7 @@
Revision history for Perl extension Mojolicious-Plugin-Model

{{$NEXT}}
- Improved documentation.

0.07 2016-01-20T08:57:01Z
- Added perl version to requirements.
Expand Down
5 changes: 3 additions & 2 deletions README.md
Expand Up @@ -125,9 +125,10 @@ Parameters to be passed to the class constructor of the model.

## model

my $model = $c->model('users');
my $model = $c->model($name);

Create and cache a model object with given name.
Load, create and cache a model object with given name. Default class for
model `camelize($moniker)::Model`. Return `undef` if model not found.

# METHODS

Expand Down
5 changes: 3 additions & 2 deletions lib/Mojolicious/Plugin/Model.pm
Expand Up @@ -185,9 +185,10 @@ L<Mojolicious::Plugin::Model> implements the following helpers.
=head2 model
my $model = $c->model('users');
my $model = $c->model($name);
Create and cache a model object with given name.
Load, create and cache a model object with given name. Default class for
model C<camelize($moniker)::Model>. Return C<undef> if model not found.
=head1 METHODS
Expand Down

0 comments on commit 7a9a3e5

Please sign in to comment.