WhereExists extends ActiveRecord. It is not a Railtie, and has nothing to do with the rest of Rails. Depending on ActiveRecord by way of Rails means that consumers of WhereExists must bring in the entirety of Rails, and not just the gems we use. Let's depend on ActiveRecord directly.
WhereExists extends ActiveRecord. It is not a Railtie, and has nothing to do with the rest of Rails. Depending on ActiveRecord by way of Rails means that consumers of WhereExists must bring in the entirety of Rails, and not just the gems we use. Let's depend on ActiveRecord directly.