Sha256: ed9fb60a960d548e688787e06118ae2817581a25e6e42982525e70be282563f8

Contents?: true

Size: 924 Bytes

Versions: 17

Compression:

Stored size: 924 Bytes

Contents

module PostmanMta
  class ApplicationController < ActionController::Metal
    abstract!

    MODULES = [
      AbstractController::Rendering,

      ActionController::UrlFor,
      ActionController::Redirecting,
      ActionController::Renderers::All,
      ActionController::ConditionalGet,

      ActionController::ForceSSL,

      AbstractController::Callbacks,
      ActionController::StrongParameters,

      # Append rescue at the bottom to wrap as much as possible.
      ActionController::Rescue,

      # Add instrumentations hooks at the bottom, to ensure they instrument
      # all the methods properly.
      ActionController::Instrumentation,

      # Params wrapper should come before instrumentation so they are
      # properly showed in logs
      ActionController::ParamsWrapper
    ].freeze

    MODULES.each do |mod|
      include mod
    end

    include Rails.application.routes.url_helpers
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
postman_mta-0.2.7 app/controllers/postman_mta/application_controller.rb
postman_mta-0.2.6 app/controllers/postman_mta/application_controller.rb
postman_mta-0.2.4 app/controllers/postman_mta/application_controller.rb
postman_mta-0.2.3 app/controllers/postman_mta/application_controller.rb
postman_mta-0.2.2 app/controllers/postman_mta/application_controller.rb
postman_mta-0.2.1 app/controllers/postman_mta/application_controller.rb
postman_mta-0.2.0 app/controllers/postman_mta/application_controller.rb
postman_mta-0.1.9 app/controllers/postman_mta/application_controller.rb
postman_mta-0.1.8 app/controllers/postman_mta/application_controller.rb
postman_mta-0.1.7 app/controllers/postman_mta/application_controller.rb
postman_mta-0.1.6 app/controllers/postman_mta/application_controller.rb
postman_mta-0.1.5 app/controllers/postman_mta/application_controller.rb
postman_mta-0.1.4 app/controllers/postman_mta/application_controller.rb
postman_mta-0.1.3 app/controllers/postman_mta/application_controller.rb
postman_mta-0.1.2 app/controllers/postman_mta/application_controller.rb
postman_mta-0.1.1 app/controllers/postman_mta/application_controller.rb
postman_mta-0.1.0 app/controllers/postman_mta/application_controller.rb