Can I have one mailer for all? Would that be called application_mailer.rb
on 2011-03-07 17:53
on 2011-03-08 19:38
On Mar 7, 11:53am, Paul Bergstrom <li...@ruby-forum.com> wrote: > Can I have one mailer for all? Would that be called > application_mailer.rb > Mailer names are pretty much arbitrary - even the _mailer extension is just a convention. The biggest downside to "put everything in one mailer" is the same one any "kitchen sink" file develops, namely a lack of structure. But there's no *technical* impediment to doing so... --Matt Jones
on 2011-03-08 20:59
On Tue, Mar 8, 2011 at 12:37 PM, Matt Jones <email@example.com> wrote: > lack of structure. But there's no *technical* impediment to doing > so... > Yeah, I even went further and just parameteized one mailer method so that I could just pass in whatever text I wanted it to send to who I wanted to send it so.... not pretty but for internal stuff does the job.