Sha256: 2a30f496cbd3688ae3c08e4defdf864d421f2ec19eac4a68e7273b35b981b6a2

Contents?: true

Size: 925 Bytes

Versions: 1

Compression:

Stored size: 925 Bytes

Contents

# frozen_string_literal: true

module PhiAttrs
  @@log_path = nil
  @@log_shift_age = 0 # Default to disabled
  @@log_shift_size = 1048576 # 1MB - Default from logger class
  @@current_user_method = nil
  @@translation_prefix = 'phi'

  def self.configure
    yield self if block_given?
  end

  def self.log_path
    @@log_path
  end

  def self.log_path=(value)
    @@log_path = value
  end

  def self.log_shift_age
    @@log_shift_age
  end

  def self.log_shift_age=(value)
    @@log_shift_age = value
  end

  def self.log_shift_size
    @@log_shift_size
  end

  def self.log_shift_size=(value)
    @@log_shift_size = value
  end

  def self.translation_prefix
    @@translation_prefix
  end

  def self.translation_prefix=(value)
    @@translation_prefix = value
  end

  def self.current_user_method
    @@current_user_method
  end

  def self.current_user_method=(value)
    @@current_user_method = value
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
phi_attrs-0.2.4 lib/phi_attrs/configure.rb