Under the hood of the includes method in Rails
06-Jul-2021 1924
The way the includes method work in Active Record is one of the most common questions during interviews, yet many developers are unaware of how that method behaves. Therefore, it’s worth saying that the method’s behavior is interesting as it behaves differently depending on the situation.This article is not a deep dive into ActiveRecord’s internals, but a meaningful and straightforward explanation of how includes works and in which case we should be using it.
Under the hood of the includes method in Rails #ruby #rubydeveloper #rubyonrails #Under #includes #method #Rails https://rubyonrails.ba/link/under-the-hood-of-the-includes-method-in-rails