collectiveidea / interactor

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

Allow interactors to be called with the same options available to the organize method #131

Closed laserlemon closed 7 years ago

laserlemon commented 7 years ago
MyInteractor.call(some_context, some_options)
laserlemon commented 7 years ago

Scrapping this idea because most options available within an organizer don't make sense in another context. Passing method names as :if and :unless options gets confusing quickly because where should those methods be defined? The internals of the interactor don't have access to the instance of the caller to evaluate those methods. I believe it will be better to confine the concept of calling an interactor with options to the scenario of calling those interactors from within an organizer.

hedgesky commented 7 years ago

Agree with you.