2 ms·
I keep looking at interactors and thinking "I'd make this a command object and then hide it in the model" - so I'd be doing something like (inside the 'member'
by mst 13y ago
I keep looking at interactors and thinking "I'd make this a command object and then hide it in the model" - so I'd be doing something like (inside the 'member' class)
method confirm_grouper () {
MyApp::Action::ConfirmGrouper->new(leader => $self)
->run
}
and then the controller would simply do -
my $result = $member->confirm_grouper;