Module: Aws::Rails
- Defined in:
- lib/aws-sdk-rails.rb,
lib/aws/rails/mailer.rb
Defined Under Namespace
Class Method Summary collapse
-
.add_action_mailer_delivery_method(name = :aws_sdk, options = {}) ⇒ Object
This is called automatically from the SDK’s Railtie, but if you want to manually specify options for building the Aws::SES::Client object, you can manually call this method.
-
.log_to_rails_logger ⇒ Object
Configures the AWS SDK for Ruby’s logger to use the Rails logger.
Class Method Details
.add_action_mailer_delivery_method(name = :aws_sdk, options = {}) ⇒ Object
This is called automatically from the SDK’s Railtie, but if you want to manually specify options for building the Aws::SES::Client object, you can manually call this method.
25 26 27 28 29 |
# File 'lib/aws-sdk-rails.rb', line 25 def self.add_action_mailer_delivery_method(name = :aws_sdk, = {}) ActiveSupport.on_load(:action_mailer) do self.add_delivery_method(name, Aws::Rails::Mailer, ) end end |
.log_to_rails_logger ⇒ Object
Configures the AWS SDK for Ruby’s logger to use the Rails logger.
32 33 34 35 |
# File 'lib/aws-sdk-rails.rb', line 32 def self.log_to_rails_logger Aws.config[:logger] = ::Rails.logger nil end |