Ruby on Rails
Monday, June 23, 2014
Hi,
-- development.rb is environment specific file. It wont work when you run application in production mode. So if you want to have access to single file which you want to run in all the modes, better have the mailer code in environment.rb / application.rb file with environment conditions as said in previous mail.
On Mon, Jun 23, 2014 at 6:30 AM, Jaimin Pandya <lists@ruby-forum.com> wrote:
> On 23 June 2014 10:41, Jaimin Pandya <lists@ruby-forum.com> wrote:
> You can test which environment is currently running and not send the
> email in development.
> See http://apidock.com/rails/Rails/env/class
Is their any way to add code in development.rb file and i can disable
email delivery?
--
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/06611fc97a7a56b75caf4f64ee9152ce%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.
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/CA%2BfXU%2B3o1Kcfm4nzuK32j3ot1azKCJOPBminxhW1qPk%2BKpAk8g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment