removes redundant constantize call [skip ci]
The following loop constantizes after logging.
This commit is contained in:
parent
2b9edb777b
commit
e8c82b5d8f
|
@ -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}")
|
||||
|
|
Loading…
Reference in New Issue