Files
rails/activerecord/test/models/topic.rb
Nikita Afanasenko b56376b450 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*)$/`.

Fixes #7238
2012-11-13 21:24:58 +04:00

3.1 KiB