The versatility of the `exists?` method
My normal use of the exists?
method in ActiveRecord has always been to toss it on the end of a query of some kind:
However, I discovered that the method can be called directly on a class and passed options:
Check out the full documentation for more examples
Tweet