1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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

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}")