Displaying 1 result from an estimated 1 matches for "lotsofmailerscontrol".
2006 Jun 10
0
DRY Up Lots o'' Mailers
...make a
factory or some other usage pattern for these because the real things that
change are the data model and the views.
As I said, I haven''t found anything that says "aha! that''s what''s going to
be maintainable." Where I''m at right now is to have a
LotsOfMailersController that contains a method for each mailer. The models
and views still have to remain. I''ve refactored some of the repetitive code
involved in wiring up the mailer into a protected method.
Any other hints? (I just can''t help thinking there''s some cool Rubyism for
doing t...