Skip to content

Commit

Permalink
ignore abstract model classes
Browse files Browse the repository at this point in the history
  • Loading branch information
7even committed Jan 27, 2019
1 parent 277861b commit 560af45
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/active_record/annotate.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ def models

klass = class_name_for(short_path)
next unless klass < ActiveRecord::Base # collect only AR::Base descendants
next if klass.respond_to?(:abstract_class?) && klass.abstract_class?

models[klass.table_name] << [path, klass]
end
Expand Down

0 comments on commit 560af45

Please sign in to comment.