Sha256: 67d85d8f99e8db20430962979311fdb9564564028f3f901755783254b664c638

Contents?: true

Size: 430 Bytes

Versions: 2

Compression:

Stored size: 430 Bytes

Contents

require 'rails/version'

module Griddler
  module AmazonSES
    class Railtie < Rails::Railtie
      if Rails::VERSION::MAJOR < 5
        middleware = ActionDispatch::ParamsParser
      else
        middleware = Rack::Head
      end

      initializer "griddler_ses.configure_rails_initialization" do |app|
        Rails.application.middleware.insert_before middleware, Griddler::AmazonSES::Middleware
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
griddler-amazon_ses-2.0.2 lib/griddler/amazon_ses/railtie.rb
griddler-amazon_ses-2.0.1 lib/griddler/amazon_ses/railtie.rb