INNER CODE UNIT · Ruby

ApplicationConfiguration

zendesk/samson · config/application.rb:69

    class ApplicationConfiguration
      def self.deprecated_url(var)
        url = ENV[var].presence
        return url if !url || url.start_with?('http')
        raise "Using deprecated url without protocol for #{var}"
      end
    end

    config.eager_load_paths << "#{config.root}/lib"

    case ENV["CACHE_STORE"]
    when "memory"
      config.cache_store = :memory_store # to debug cache keys, bundle open activesupport -> active_support/cache.rb#log
    when "memcached"
      require_relative "initializers/sockify"
      options = {
        value_max_bytes: 3000000,
        compress: true,

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…