DEV Community

Discussion on: Business logic in Rails with operators

jaredcwhite profile image
Jared White

"If models are dedicated to query and data storage"

"While the database (and therefore model)"

Again, I fear we are treading into dangerous waters of conflating the model layer of an application with the ActiveRecord pattern specifically. You can have a wide variety of objects employing all kinds of different patterns and many of them will of course be POROs. Only some—perhaps only a few even!—of the objects in app/models need be literal ActiveRecord objects. ActiveRecord is just one pattern among numerous potential avenues of exploration in OOP.