artifice
artifice copied to clipboard
Added support for reactivation
I added an Artifice.reactivate method. It supports the same style as activate_with, but just mounts the last used endpoint.
It may seem hard to justify, but this is actually really useful for (ahem) "a special case" we're dealing with in one of our suites and I suspect it could be useful for others as well.
I've gone back and forth on this one and I think I still like it. At the end of the day, it's easy to dig your last endpoint out of Artifice and just bolt it back on, but this approach doesn't require the user to have any knowledge of the internals.
I'm wondering if there should be a Artifice.previously_activated? method. Thoughts?