require 'active_record' if ActiveRecord::VERSION::STRING =~ /^4\.0/ require 'store_base_sti_class_for_4_0' elsif ActiveRecord::VERSION::STRING =~ /^4\.1/ require 'store_base_sti_class_for_4_1' elsif ActiveRecord::VERSION::STRING =~ /^4\.2/ require 'store_base_sti_class_for_4_2' elsif ActiveRecord::VERSION::STRING =~ /^5\.0/ require 'store_base_sti_class_for_5_0' elsif ActiveRecord::VERSION::STRING =~ /^5\.1/ require 'store_base_sti_class_for_5_1' elsif ActiveRecord::VERSION::STRING =~ /^5\.2/ require 'store_base_sti_class_for_5_2' end module StoreBaseSTIClass end