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

ruby - When to use an ORM (Sequel, Datamapper, AR, etc.) vs. pure SQL for querying -

php - PHPDoc: @return void necessary? -

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