Change formatting and correct the docs on RS::View.
[dbsrgits/DBIx-Class.git] / lib / DBIx / Class / ResultSource / View.pm
index cb20f2c..3cf5cf8 100644 (file)
@@ -135,8 +135,8 @@ syntaxes.
       "MyDB::Schema::Result::Year","MyDB::Schema::Result::CD"
       );
 
-Specify the result classes or other views that comprise this view.
-Pass this method an array reference.
+Specify the views (and only the views) that this view depends on.
+Pass this an array reference.
 
 =head1 OVERRIDDEN METHODS
 
@@ -157,7 +157,10 @@ sub new {
     my ( $self, @args ) = @_;
     my $new = $self->next::method(@args);
     $new->{deploy_depends_on}
-        = { map { $_->result_source_instance->name => 1 } @{ $new->{deploy_depends_on}||[] } }
+        = {
+            map { $_->result_source_instance->name => 1 }
+            @{ $new->{deploy_depends_on}||[] }
+          }
         unless ref $new->{deploy_depends_on} eq 'HASH';
     return $new;
 }