DEV Community

Discussion on: Business logic in Rails with operators

Collapse
apotonick profile image
Nick Sutterer

I'd love to learn what Trailblazer version you were using back then! From what you describe here, it sounds like you were trying out operations in Trailblazer 1.1? As the creator, I can tell you, the #process method (in your case it's #create, #update, etc) was a huge mistake. Those methods quickly got super messy, that is why we came up with Trailblazer 2.0 that, besides the new file structure, focuses on streamlining business logic flow and automatic error handling with the step DSL (described here: trailblazer.to/2.1/docs/activity.h...).
Nice post, and thanks for the link! 🥰