actionmailer - Rails initializers folder -


i'm having little trouble understanding how files inside intializers folder used. files within directory loaded automatically? or need specify ones in location?

the above question came play because wanted setup action mailer. created file called smtp_gmail.rb inside folder defined actionmailer::base.smtp_settings = { ... }. sufficient let action mailer know use these settings?

my guess files in initializers folders loaded, , if configuration specific set, used.

yes, files in config/initializers loaded automatically.

here's detailed article on subject. see section 2.7.27.


Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -