|
|
|
|
|
by dknight
4926 days ago
|
|
Model classes in Rails inherit ActiveRecord::Base. So, you can call a class method like update_all which is equivalent to an update statement on the table. 'Models could have 0 code of working with database and business-logic only'
Well the business logic creeping in is one of the issues here. That is why there are attempts to separate out the business logic as in case of the use of /app/use_cases [refer to the link of use cases in the article]. |
|