It's safe to use nil? instead of blank? because it's impossible to get an array on finder with bang; all_by fi
It needs a changelog entry. Also, I think it'll be good to have the tests on master as well, so that we can ensure it works perfectly fine there. Thanks!
Sorry, just noticed the other pull request for master 😄, thanks!
I think it'll need a rebase - again due to the changelog 😄
@carlosantoniodasilva done :)
Can you also do like this, removing the nothing raised thing? https://github.com/rails/rails/pull/8202/files#r2112067 Thanks.
Use nil? instead of blank? to check dynamic finder result
It's safe to use `nil?` instead of `blank?` because it's impossible to get an array on finder with bang;
`all_by` finder matches against regex without bang: `when /^find_(all_|last_)?by_([_a-zA-Z]\w*)$/`.
@carlosantoniodasilva done 🤘