Permalink
Browse files

Unify Methods POD

  • Loading branch information...
1 parent fdb0843 commit d3b935354e7d955d1d1ef5e91be4742094779eed @mateu mateu committed May 11, 2011
Showing with 18 additions and 18 deletions.
  1. +18 −18 lib/MojoMojo.pm
View
36 lib/MojoMojo.pm
@@ -98,24 +98,6 @@ if ($@ ) {
MojoMojo->model('DBIC')->schema->attachment_dir( MojoMojo->config->{attachment_dir}
|| MojoMojo->path_to('uploads') . '' );
-=head1 METHODS
-
-=head2 prepare
-
-Accomdate a forcing of SSL if needed in a reverse proxing setup
-
-=cut
-
-sub prepare {
- my $self = shift->next::method(@_);
- if ( $self->config->{force_ssl} ) {
- my $request = $self->request;
- $request->base->scheme('https');
- $request->uri->scheme('https');
- }
- return $self;
-}
-
=head1 NAME
MojoMojo - A Catalyst & DBIx::Class powered Wiki.
@@ -150,6 +132,24 @@ To find out more about how you can use MojoMojo, please visit
http://mojomojo.org or read the installation instructions in
L<MojoMojo::Installation> to try it out yourself.
+=head1 METHODS
+
+=head2 prepare
+
+Accomdate a forcing of SSL if needed in a reverse proxing setup
+
+=cut
+
+sub prepare {
+ my $self = shift->next::method(@_);
+ if ( $self->config->{force_ssl} ) {
+ my $request = $self->request;
+ $request->base->scheme('https');
+ $request->uri->scheme('https');
+ }
+ return $self;
+}
+
=head2 ajax

0 comments on commit d3b9353

Please sign in to comment.