Sha256: f83c6a67ecf7f0b56a9a3b1dad53a8805a8324cba07695e332f42b722a51678b
Contents?: true
Size: 898 Bytes
Versions: 9
Compression:
Stored size: 898 Bytes
Contents
require 'eeny-meeny/version' require 'eeny-meeny/railtie' if defined?(Rails) require 'eeny-meeny/models/encryptor' module EenyMeeny class Config attr_accessor :cookies, :experiments, :secret, :secure, :query_parameters attr_reader :encryptor def initialize @cookies = { http_only: true, path: '/', same_site: :strict } @experiments = {} @secret = '9fc8b966eca7d03d55df40c01c10b8e02bf1f9d12d27b8968d53eb53e8c239902d00bf6afae5e726ce1111159eeb2f8f0e77233405db1d82dd71397f651a0a4f' @secure = true @encryptor = (@secure ? EenyMeeny::Encryptor.new(@secret) : nil) @query_parameters = { experiment: true, smoke_test: true } end end def self.config @@config ||= Config.new end def self.configure yield self.config end def self.reset! @@config = nil end end
Version data entries
9 entries across 9 versions & 1 rubygems