by onetwotree · 10y ago · 0 comments
On some work projects I've gotten a lot of mileage out of breaking with the traditional Rails patterns in favor of stuff like `Operation` objects. Too bad I didn't know about Trailblazer!
I also agree about Rails making excessive use of Ruby magic. Just because it's possible, doesn't mean you should do it.
Regarding non-ActiveRecord models, I use Sequel[1] exclusively at work - in addition to being decidedly less magical, it has wonderful support for most Postgresql specific features.
I'll be consulting this in the future before embarking on new Ruby adventures.
Also, what do you use for authentication?
http://sequel.jeremyevans.net/rdoc-plugins/classes/Sequel/Pl...
Sequel is my favourite of the tools I use.
Regarding authentication, my company makes authorization and access control software, so authentication isn't something we just toss a plugin at.