是否可以在模块内部安装导轨邮件并仍然可以正常工作,例如:
module Some
module Deeply
module Nested
class Mailer < ApplicationMailer
end
end
end
end
我还需要放在一个文件夹结构中,如:
app/mailers/some/deeply/nested/mailer.rb
或是
app/mailers/mailer.rb
完美的?
答案是你可以,但如果嵌套邮件程序,则需要将文件放在与模块嵌套匹配的嵌套文件夹结构中。