Every application needs configuration data like database passwords, AWS access keys, and social app IDs before it can run. What's the easiest way to do it?
Many don't notice that Rails supports auto code reloading out of the box, through ActiveSupport::Dependencies. A few will notice it once they are affected by some corner case where the automatic code reloading doesn't work well.
This is part two in a series about how to incorporate functional programming concepts into Ruby code, in a pragmatic way – something I call “functional style.”
In this post we will see how to improve searching intelligence, but right now let’s take care of the main part of our functionality - multi model searching.
Rails by default uses sequential integers for that which is fine most of the time. But they have one disadvantage - if they are visible externally someone can learn a lot about your business.