diff --git a/app/models/section_sorter.rb b/app/models/section_sorter.rb index 095e480..dddfb1f 100644 --- a/app/models/section_sorter.rb +++ b/app/models/section_sorter.rb @@ -72,11 +72,6 @@ end end - # needed for the find_invalid_records rake task - def self.model_name - "SectionSorter" - end - private def modifiable_values diff --git a/lib/data_cleanup/model_check.rb b/lib/data_cleanup/model_check.rb index b1b793b..20bbc87 100644 --- a/lib/data_cleanup/model_check.rb +++ b/lib/data_cleanup/model_check.rb @@ -12,6 +12,7 @@ end def call + return unless model.superclass == ActiveRecord::Base rule, models = ARGV[1].to_s.split("=") case rule when 'INCLUDE'