rollback to using respond_to? for params
require AR and SP only if Rails is defined