diff options
author | groditi <groditi@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7> | 2008-01-02 18:49:19 +0000 |
---|---|---|
committer | groditi <groditi@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7> | 2008-01-02 18:49:19 +0000 |
commit | c8fbb8ad6185f3f14717138aaf8bb95d6b2d27b2 (patch) | |
tree | 03f004e2e8b59e5b809444d323c48b4b9c7221fd /lib/Reaction/UI/ViewPort/Role | |
parent | 2f670e13aa8f30bbf6ba910f2d8ef97aa8a9e3e5 (diff) | |
download | reaction-c8fbb8ad6185f3f14717138aaf8bb95d6b2d27b2.tar.gz reaction-c8fbb8ad6185f3f14717138aaf8bb95d6b2d27b2.zip |
work in progress, listview still broken
Diffstat (limited to 'lib/Reaction/UI/ViewPort/Role')
-rw-r--r-- | lib/Reaction/UI/ViewPort/Role/Actions.pm | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/Reaction/UI/ViewPort/Role/Actions.pm b/lib/Reaction/UI/ViewPort/Role/Actions.pm index d7641be..9c99077 100644 --- a/lib/Reaction/UI/ViewPort/Role/Actions.pm +++ b/lib/Reaction/UI/ViewPort/Role/Actions.pm @@ -13,15 +13,12 @@ role Actions, which { my ($self) = @_; my (@act, $i); my $ctx = $self->ctx; - #if i could abstract this vs ->object for row we could eliminate the entity - #version of this role and just use one for both things. that would be cool. - my $obj = $self->current_collection; my $loc = $self->location; foreach my $proto (@{ $self->action_prototypes }) { my $action = Reaction::UI::ViewPort::Action::Link->new ( ctx => $ctx, - target => $obj, + target => $self->model, location => join ('-', $loc, 'action', $i++), %$proto, ); |