ORM agnosticism: remove hard require of ActiveRecord

Do not use `require 'activerecord'`, and instead only load the ransack AR adapters if AR has already been defined.