more POD!
[catagits/Reaction.git] / lib / Reaction / UI / Controller / Collection / CRUD.pm
index 7552077..1141826 100644 (file)
@@ -13,12 +13,12 @@ sub _build_action_viewport_map {
   my $map = $self->next::method(@_);
   $map->{list} = ListView if exists $map->{list};
 
-  my %allowed = map { $_ => undef }
-    ( @{$self->default_member_actions}, @{$self->default_collection_actions} );
-
-  my @local_actions = qw/create update delete delete_all/;
-  $map->{$_} = Action for grep { exists $allowed{$_} } @local_actions;
+  #my %allowed = map { $_ => undef }
+  #  ( @{$self->default_member_actions}, @{$self->default_collection_actions} );
+  #my @local_actions = qw/create update delete delete_all/;
+  #$map->{$_} = Action for grep { exists $allowed{$_} } @local_actions;
 
+  $map->{$_} = Action for @local_actions;
   return $map;
 }
 
@@ -142,12 +142,17 @@ data target using C<get_model_action>
 
 =head2 _build_action_viewport_map
 
-Map C<create>, C<update>, C<delete> and C<delete_all> to use the 
-C<Action|Reaction::UI::ViewPort::Action> viewport by default.
+Map C<create>, C<update>, C<delete> and C<delete_all> to use the
+L<Action|Reaction::UI::ViewPort::Action> viewport by default and have C<list>
+use L<ListView|Reaction::UI::ViewPort::ListView> by default.
+
+=head2 _build_default_member_actions
 
-=head2 _build_action_viewport_args
+Add C<update> and C<delete> to the list of default actions.
 
-Add action_prototypes to the C<list> action so that action links render correctly in L<ListView|Rection::UI::ViewPort::Listview>.
+=head2 _build_default_collection_actions
+
+Add C<create> and C<delete_all> to the list of default actions.
 
 =head1 ACTIONS
 
@@ -177,8 +182,7 @@ See L<Update|Reaction::InterfaceModel::Action::DBIC::Result::Update>
 
 =head2 delete
 
-Chained to C<object>, deletee a single object.
-
+Chained to C<object>, delete a single object.
 
 See L<Delete|Reaction::InterfaceModel::Action::DBIC::Result::Delete>
  for more info.