getting past immediate error with ransack

In application_controller, when "search.result" returns an ActiveRecord::Relation object, not a Ransack object, thus throwing template errors.