lib/stitches/configuration.rb
# Mainly for testing, this resets all configuration to the default value
Mainly for testing, this resets all configuration to the default value
Mainly for testing this resets all configuration to the default value
def reset_to_defaults!
    @allowlist_regexp = nil
    @custom_http_auth_scheme = UnsetString.new("custom_http_auth_scheme")
    @env_var_to_hold_api_client_primary_key = NonNullString.new("env_var_to_hold_api_client_primary_key","STITCHES_API_CLIENT_ID")
    @env_var_to_hold_api_client= NonNullString.new("env_var_to_hold_api_client","STITCHES_API_CLIENT")
    @max_cache_ttl = NonNullInteger.new("max_cache_ttl", 0)
    @max_cache_size = NonNullInteger.new("max_cache_size", 0)
    @disabled_key_leniency_in_seconds = ActiveSupport::Duration.days(3)
    @disabled_key_leniency_error_log_threshold_in_seconds = ActiveSupport::Duration.days(2)
  end
def reset_to_defaults! @allowlist_regexp = nil @custom_http_auth_scheme = UnsetString . new ( "custom_http_auth_scheme" ) @env_var_to_hold_api_client_primary_key = NonNullString . new ( "env_var_to_hold_api_client_primary_key" , "STITCHES_API_CLIENT_ID" ) @env_var_to_hold_api_client = NonNullString . new ( "env_var_to_hold_api_client" , "STITCHES_API_CLIENT" ) @max_cache_ttl = NonNullInteger . new ( "max_cache_ttl" , 0 ) @max_cache_size = NonNullInteger . new ( "max_cache_size" , 0 ) @disabled_key_leniency_in_seconds = ActiveSupport :: Duration . days ( 3 ) @disabled_key_leniency_error_log_threshold_in_seconds = ActiveSupport :: Duration . days ( 2 ) end
Mainly for testing, this resets all configuration to the default value
Mainly for testing this resets all configuration to the default value