ORM agnosticism: remove hard require of ActiveRecord

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