use `Rails.configuration.cache_classes` instead of `Rails.env.development?` when reloading controllers

Because running in dev w/ cache classes on breaks if you try to reload.

Besides, this code is concerned with class caching and reloading, so we should base the logic on that as opposed to the assumption that the rails environment controls caching.