1337807/palantir — pull request #1 by bloot (2014-11-19 01:59:02+00:00)
Title: Using User.any? instead of User.all.any?

In this case it is not necessary ( and will perform worst ) to use .all on User. You can just call User.any? and your execution should be significantly faster.