This is part of the Semicolon&Sons Code Diary - consisting of lessons learned on the job. You're in the architecture category.
Last Updated: 2025-10-28
I got rid of a method in Product called available. To check that I had not broken anything I grepped through the app directory and, seeing nothing, figured my job was done safely.
Not so: I had used it in the config/sitemap.rb This was a bad idea, in that
you don't expect there to be domain logic in the config dir of a Rails application.
config dir. app would be the ServiceName.call