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:
parent
2b9edb777b
commit
e8c82b5d8f
1 changed files with 1 additions and 2 deletions
|
@ -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 a new issue