Using Arel instead of ActiveRecord