Class: Konfig::SmtpAdapter

Inherits:
Adapter
  • Object
show all
Defined in:
lib/konfig/rails/adapters/smtp_adapter.rb

Instance Attribute Summary

Attributes inherited from Adapter

#data

Instance Method Summary collapse

Methods inherited from Adapter

adjust_whitespace, has_template, #initialize, template_for, templates

Methods included from ChildClassManager

included

Constructor Details

This class inherits a constructor from Konfig::Adapter

Instance Method Details

#adaptObject



4
5
6
7
8
# File 'lib/konfig/rails/adapters/smtp_adapter.rb', line 4

def adapt
  using(:smtp) do |data|
    ActionMailer::Base.smtp_settings = data[Rails.env].to_hash.symbolize_keys
  end
end