Skip to content

Commit e8c82b5

Browse files
committed
removes redundant constantize call [skip ci]
The following loop constantizes after logging.
1 parent 2b9edb7 commit e8c82b5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

guides/source/autoloading_and_reloading_constants.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,8 +233,7 @@ module StiPreload
233233
select(inheritance_column).
234234
distinct.
235235
pluck(inheritance_column).
236-
compact.
237-
each(&:constantize)
236+
compact
238237

239238
types_in_db.each do |type|
240239
logger.debug("Preloading STI type #{type}")

0 commit comments

Comments
 (0)