Previews paths should not be eager loaded

Right now they are being eager loaded that means they are being loaded
in the production environment unnecessarily.

All we need is for those paths to be autoloaded in development, so
code reload works.
This commit is contained in:
Rafael Mendonça França 2022-11-11 18:03:55 +00:00
parent 46608c9398
commit 83138ce2dd
No known key found for this signature in database
GPG Key ID: FC23B6D0F1EEE948
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ module Rails
paths.add "vendor", load_path: true
paths.add "vendor/assets", glob: "*"
paths.add "test/mailers/previews", eager_load: true
paths.add "test/mailers/previews", autoload: true
paths
end