Permalink
Browse files

ready for production

  • Loading branch information...
2 parents fd962f1 + 88f6802 commit 67983671f940831dfc3db43a311e92ca5545c3ef @rizen rizen committed Nov 5, 2013
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/Wing/Role/Result/Field.pm
  2. +1 −1 lib/Wing/Web/Admin/User.pm
@@ -121,7 +121,7 @@ An array reference where the first value is the minimum value in the range and t
=item options
-An enumerated list of scalars as options for this field. Alternatively you can pass in a coe reference. The code reference will be passed a reference to this object (though it may not be inserted into the database yet), and the L<Wing::DB::Result> C<describe> options, if they are available.
+An enumerated list of scalars as options for this field. Alternatively you can pass in a code reference. The code reference will be passed a reference to this object (though it may not be inserted into the database yet), and the L<Wing::DB::Result> C<describe> options, if they are available.
Example of using a code ref:
@@ -30,7 +30,7 @@ post '/admin/user' => sub {
get '/admin/user/:id' => sub {
my $current_user = get_admin_by_session_id();
- template 'admin/user', { current_user => describe($current_user, current_user => $current_user), page_title => 'Edit User', user => describe(fetch_object('User'), current_user => $current_user, include_options => 1)};
+ template 'admin/user', { current_user => describe($current_user, current_user => $current_user), page_title => 'Edit User', user => describe(fetch_object('User'), current_user => $current_user, include_related_objects => 1, include_options => 1, include_private => 1, i nclude_relationships => 1)};
};
post '/admin/user/:id' => sub {

0 comments on commit 6798367

Please sign in to comment.