We were unable to load Disqus. If you are a moderator please see our troubleshooting guide.

Mateusz Białowąs • 3 years ago

https://gist.github.com/mat...
This is my implementation of active record sandbox, also in one file

bhserna • 3 years ago

Thanks Mateusz!

I think your implementation is more than ok for most cases. The use of pry, makes it very interesting, I should see how is a good way to include it in the tool.

My use case was a little bit different because I wanted to:

* use Postgres and destroy the database at the end
* hide the setup details
* display the examples with a little format
* just use the logger on the examples

... in order to use it as a learning tool.

It is a proposal, maybe someone can build something better on top of it 😀