Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想为 ActionMailer 类中的几个邮件程序运行相同的代码。我怎样才能实现它?
将共享代码放入模块中。在每个邮件程序类中包含该模块。