Read more

Rails 5's ApplicationRecord is the place to put generic model logic

Arne Hartherz
June 14, 2017Software engineer at makandra GmbH

Since Rails 5, domain models inherit from ApplicationRecord by default.

Illustration web development

Do you need DevOps-experts?

Your development team has a full backlog? No time for infrastructure architecture? Our DevOps team is ready to support you!

  • We build reliable cloud solutions with Infrastructure as code
  • We are experts in security, Linux and databases
  • We support your dev team to perform
Read more Show archive.org snapshot

This is the place to put code that should be available in all your application's models.
There is no reason to monkey-patch ActiveRecord::Base when following that practice.

Posted by Arne Hartherz to makandra dev (2017-06-14 21:55)