Sha256: 498944078ce95e6964982689320ed26d8c5c8d8e4585c293f61645a98a824063

Contents?: true

Size: 718 Bytes

Versions: 2

Compression:

Stored size: 718 Bytes

Contents

# frozen_string_literal: true

module Sail
  # Configuration
  # This class keeps the configuration
  # data for the gem.
  # Defaults be found here and can be
  # overridden in an initializer, environment
  # file or application.rb
  class Configuration
    attr_accessor :cache_life_span, :array_separator, :dashboard_auth_lambda,
                  :back_link_path, :enable_search_auto_submit, :days_until_stale,
                  :enable_logging

    def initialize
      @cache_life_span = 6.hours
      @array_separator = ";"
      @dashboard_auth_lambda = nil
      @back_link_path = "root_path"
      @enable_search_auto_submit = true
      @days_until_stale = 60
      @enable_logging = true
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sail-3.1.0 lib/sail/configuration.rb
sail-3.0.1 lib/sail/configuration.rb