lib/ab_admin/utils.rb in ab_admin-0.9.0 vs lib/ab_admin/utils.rb in ab_admin-0.10.0

- old
+ new

@@ -1,11 +1,6 @@ module AbAdmin module Utils - autoload :CSVBuilder, 'ab_admin/utils/csv_builder' - autoload :EvalHelpers, 'ab_admin/utils/eval_helpers' - autoload :Logger, 'ab_admin/utils/logger' - autoload :Mysql, 'ab_admin/utils/mysql' - def all_models Kernel.suppress_warnings do Dir.glob(Rails.root.to_s + '/app/models/**/*.rb').reject { |path| path =~ /concerns|shared/ }.each { |file| require file } end [ActiveRecord::Base, ApplicationRecord].flat_map{|sc| sc.subclasses.find_all { |model| model.connection.table_exists?(model.table_name) } }