collectiveidea / interactor

Interactor provides a common interface for performing complex user interactions.
MIT License
3.36k stars 212 forks source link

Support conditional execution of organized interactors #139

Closed hedgesky closed 4 years ago

hedgesky commented 7 years ago

Fixes #128. I've decided to create OrganizedInteractor class to hold organized interactors along with passed options. This class is also responsible to run interactors with regard of passed options. :if and :unless are currently supported; you could pass either a symbol or a proc.

temkin commented 6 years ago

This is a very good feature! Why not merged yet?

mikepence commented 6 years ago

+1 huge missing part of organizers

gustavomazzoni commented 5 years ago

+1

hedgesky commented 5 years ago

Hi @laserlemon, I know it's been a while since this conversation was started and probably now this gem isn't in your list of priorities. I'm not going to ask you to invest a lot of your time, but maybe you could merge the PR? It will help people who want to use the feature. At the same time, leaving it undocumented makes it kind of experimental and leaves you with possibility to change it in future if you'd like to.

lfv89 commented 5 years ago

That is a really helpful feature.

@laserlemon do you think you will be able to review this PR anytime soon?

iriscoopers commented 5 years ago

+1 !

fedefa commented 3 years ago

+1!