diff options
author | groditi <groditi@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7> | 2009-12-14 21:03:04 +0000 |
---|---|---|
committer | groditi <groditi@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7> | 2009-12-14 21:03:04 +0000 |
commit | f1a74541734521d2b5013bcd577860d98ff727f5 (patch) | |
tree | 81446076153c98a8686df432673f0ee16bb80940 /lib/Reaction/UI/Controller.pm | |
parent | 26fa3b8aef9774f0ebd25fcbda6297cb263417e9 (diff) | |
parent | a722f3e3e226a7319f69722de01c06792b3cf2c3 (diff) | |
download | reaction-f1a74541734521d2b5013bcd577860d98ff727f5.tar.gz reaction-f1a74541734521d2b5013bcd577860d98ff727f5.zip |
r31712@martha (orig r1247): groditi | 2009-10-02 17:02:01 -0400
whoops compile error
r32396@martha (orig r1251): wreis | 2009-11-04 14:37:47 -0500
undo r1236
r32468@martha (orig r1254): edenc | 2009-11-16 16:48:46 -0500
r15979@debian (orig r1252): edenc | 2009-11-10 21:45:38 -0300
branching for clone-and-inherit workaround
r15980@debian (orig r1253): edenc | 2009-11-10 21:50:34 -0300
working around Moose glitch via parameterized roles
r32469@martha (orig r1255): edenc | 2009-11-16 17:06:25 -0500
added clone and inherit fix to Field::Mutable::HiddenArray
r32618@martha (orig r1256): edenc | 2009-12-04 16:35:06 -0500
fixed hash deref bug in the base controller
Diffstat (limited to 'lib/Reaction/UI/Controller.pm')
-rw-r--r-- | lib/Reaction/UI/Controller.pm | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/Reaction/UI/Controller.pm b/lib/Reaction/UI/Controller.pm index 764ed4e..0ff1c2c 100644 --- a/lib/Reaction/UI/Controller.pm +++ b/lib/Reaction/UI/Controller.pm @@ -15,7 +15,7 @@ with( sub build_per_context_instance { my ($self, $c, @args) = @_; my $class = ref($self) || $self; - my $newself = $class->new($self->_application, {%$self, context => $c, @args}); + my $newself = $class->new($self->_application, {%{$self || {}}, context => $c, @args}); return $newself; } @@ -118,7 +118,7 @@ controller configuration. For example to override the default number of items in a CRUD list action: __PACKAGE__->config( - action => { + action => { list => { ViewPort => { per_page => 50 } }, } ); @@ -142,7 +142,7 @@ TODO: explain how next_action as a scalar gets converted to the redirect arrayre =head2 pop_viewport_to $vp Call L<Reaction::UI::FocusStack/pop_viewport> or -L<Reaction::UI::FocusStack/pop_viewport_to> on +L<Reaction::UI::FocusStack/pop_viewport_to> on the C<< $c->stash->{focus_stack} >>. =head2 redirect_to $c, $to, $captures, $args, $attrs @@ -168,7 +168,7 @@ $args if not supplied. =head2 make_context_closure The purpose of this method is to prevent memory leaks. -It weakens the context object, often denoted $c, and passes it as the +It weakens the context object, often denoted $c, and passes it as the first argument to the sub{} that is passed to the make_context_closure method. In other words, @@ -181,7 +181,7 @@ make_context_closure returns sub { $sub_you_gave_it->($weak_c, @_) To further expound up this useful construct consider code written before make_context_closure was created: - on_apply_callback => + on_apply_callback => sub { $self->after_search( $c, @_ ); } |