INNER CODE UNIT · Ruby

Application

zendesk/samson · config/application.rb:52

  class Application < Rails::Application
    # Initialize configuration defaults for originally generated Rails version.
    config.load_defaults 7.0

    # the new default of `true` breaks test/models/user_test.rb see https://github.com/rails/rails/issues/40867
    config.active_record.has_many_inversing = false

    # the new default of `true` breaks redirecting to shields.io.
    config.action_controller.raise_on_open_redirects = false

    # the new default of `true` breaks tests.
    config.active_support.executor_around_test_case = false

    # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
    config.force_ssl = (ENV["FORCE_SSL"] == "1")
    config.ssl_options = {redirect: {exclude: ->(request) { request.path.match?(/^\/ping(\/|$)/) }}}

    class ApplicationConfiguration

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…