lib/motor/admin.rb in motor-admin-0.4.6 vs lib/motor/admin.rb in motor-admin-0.4.7

- old
+ new

@@ -2,10 +2,10 @@ module Motor class Admin < ::Rails::Engine config.custom_html = '' - unless Motor.development? + if !Motor.development? && !Rails.env.production? config.eager_load_paths.delete(File.expand_path('../../app/controllers', __dir__)) config.eager_load_paths.delete(File.expand_path('../../app/controllers/concerns', __dir__)) config.eager_load_paths.delete(File.expand_path('../../app/models', __dir__)) config.autoload_once_paths << File.expand_path('../../app/models', __dir__)