Re: [Rails] Strange mailer behaviour in Rails 4.2

2015-02-17 Thread Colin Law
On 17 February 2015 at 09:56, Damjan Rems li...@ruby-forum.com wrote: The code inside test method doesn't get executed at all. class MailSender ActionMailer::Base default :from = 'no.reply@some.where' def test() Should that not be def self.test() if you want to call it using

[Rails] Strange mailer behaviour in Rails 4.2

2015-02-17 Thread Damjan Rems
The code inside test method doesn't get executed at all. class MailSender ActionMailer::Base default :from = 'no.reply@some.where' def test() should_die_here mail( :to = 't...@to.com', :subject = 'Test', :text = 'Text').deliver end end ## In controller: