Check if ActiveRecord::Base is defined