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
Post a Comment