removes redundant constantize call [skip ci]

The following loop constantizes after logging.
This commit is contained in:
Xavier Noria 2019-12-25 09:21:57 +01:00
parent 2b9edb777b
commit e8c82b5d8f
1 changed files with 1 additions and 2 deletions

View File

@ -233,8 +233,7 @@ module StiPreload
select(inheritance_column).
distinct.
pluck(inheritance_column).
compact.
each(&:constantize)
compact
types_in_db.each do |type|
logger.debug("Preloading STI type #{type}")