I previously wrote a quick intro to the endless method in Ruby and now I will try to use it to name transaction blocks in Rails. This is a technique Kasper Timm Hansen shared in a reply to my previous post. I will try to refactor some examples from two open-source Rails repositories just to explore how the code looks. This open-ended exercise is a playground for experimenting with the code shape a
![Transactions blocks with endless methods](https://cdn-ak-scissors.b.st-hatena.com/image/square/eec6935403030ae1b1e274f75b874c7a1640073f/height=288;version=1;width=512/https%3A%2F%2Fhashnode.com%2Futility%2Fr%3Furl%3Dhttps%253A%252F%252Fcdn.hashnode.com%252Fres%252Fhashnode%252Fimage%252Fupload%252Fv1718866055049%252F8af49170-c67a-4c9f-8483-478439b51861.png%253Fw%253D1200%2526auto%253Dcompress%252Cformat%2526format%253Dwebp%2526fm%253Dpng)