← Graph

interactor

tool 4 connections

Ruby gem for encapsulating business use cases as small classes, with an 'interactor organizer' to run steps in order and a rollback mechanism. Ivan Nemytchenko describes himself as a former huge fan, but demonstrates that after stripping away the unimportant structure, a multi-class interactor scenario he had written collapsed into a simple four-line method, leading him to prefer plain class methods over the interactor gem.

category
library
about
interactor tool
Describes collapsing an interactor-gem scenario into a four-line method.
about
interactor tool
In Q&A Ivan recommends against using the interactor gem.
about
interactor tool
Q&A specifically recommended against interactors.
related_to
interactor tool
Ivan explicitly recommends against using the interactor gem; converting to plain functions is better.

Provenance

Read by
29 extractions