lib/jt-rails-toolbox.rb in jt-rails-toolbox-1.1.0 vs lib/jt-rails-toolbox.rb in jt-rails-toolbox-1.1.1

- old
+ new

@@ -87,9 +87,15 @@ def configure_mail(app) ActionMailer::Base.delivery_method = @params['mail']['delivery_method'] ActionMailer::Base.smtp_settings = @params['mail']['smtp_settings'] ActionMailer::Base.default_url_options[:host] = @params['hosts']['host'] ActionMailer::Base.default from: @params['mail']['from'] + + Rails.configuration.action_mailer.delivery_method = ActionMailer::Base.delivery_method + Rails.configuration.action_mailer.smtp_settings = ActionMailer::Base.smtp_settings + Rails.configuration.action_mailer.default_url_options ||= {} + Rails.configuration.action_mailer.default_url_options[:host] = ActionMailer::Base.default_url_options[:host] + Rails.configuration.action_mailer.default = ActionMailer::Base.default end def configure_paperclip(app) # Strip meta data from images Paperclip::Attachment.default_options[:convert_options] = { all: '-strip' } \ No newline at end of file