Colin Law wrote in post #1168195:
> On 17 February 2015 at 09:56, Damjan Rems <lists@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
> MailSender.test()
>
> Colin
No. It is called from controller.
by
TheR
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/a9ea5a9e631c777352d6883559b15833%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment