| Don't put the logic in activerecord models at all. Not even the data.
Use activerecord uniquely as a querying mechanism (read or write), don't use relationships and don't put validations in there. Create objects (aka behavioral objects, aka servoce objects) for the logic and create entities (plain ruby objects) when you need to pass around the data. Yes, you are essentially eliminating the entirety of activerecord. After 10 years of rails, you realize that is the only safe way to use that library. By the way User
User::SignUp
Are related. The behavior doesn't need to be in the same object, the namespace takes care of that already. |
I'm sorry, but without relationships - why even use AR for querying? And how? Via connection.select/execute?