Why on earth Mailer.new returns nil???
I thought no matter what happened, new should never
return nil, even there's not enough memory!!
In that case, it should raise exception.
Use the source? it tells you nothing about new.
And I see below on the doc:
ApplicationMailer.create_signed_up("email@example.com") # => tmail object for testing
ApplicationMailer.deliver_signed_up("firstname.lastname@example.org") # sends the email
ApplicationMailer.new.signed_up("email@example.com") # won't work!
I didn't notice the # won't work! comment at all!!!!
Yes that who me didn't read it carefully...
but that's a common sense you put all use cases,
and new is very straightforward, isn't it??
Why not just undefine new if you don't want people to call it?
Then at least I can see no new method error,
instead of giving a nil which means nothing at all.
Start whining/ranting again lol...