Use ActiveRecord method instead of Ruby method