File tree Expand file tree Collapse file tree 1 file changed +0
-10
lines changed
actionmailer/lib/action_mailer Expand file tree Collapse file tree 1 file changed +0
-10
lines changed Original file line number Diff line number Diff line change @@ -71,16 +71,6 @@ class Railtie < Rails::Railtie # :nodoc:
71
71
initializer "action_mailer.set_autoload_paths" , before : :set_autoload_paths do |app |
72
72
options = app . config . action_mailer
73
73
app . config . paths [ "test/mailers/previews" ] . concat ( options . preview_paths )
74
-
75
- # Preview paths configuration needs a pass.
76
- #
77
- # config.paths is cached as soon as it is accessed. Therefore, mutating
78
- # paths["test/mailers/previews"] does not guarantee config.autoload_paths
79
- # is going to include them.
80
- #
81
- # If config.paths was accessed before, config.autoload_paths is going to
82
- # have whatever paths["test/mailers/previews"] had when cached.
83
- app . config . autoload_paths . concat ( options . preview_paths )
84
74
end
85
75
86
76
initializer "action_mailer.compile_config_methods" do
You can’t perform that action at this time.
0 commit comments