Sha256: 559587fc323d23d3d810f2c3efd8bb4ff2df8104b1db0ac482a48f35677ea9a2

Contents?: true

Size: 574 Bytes

Versions: 3

Compression:

Stored size: 574 Bytes

Contents

# frozen_string_literal: true

module PhiAttrs
  @@log_path = nil
  @@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.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

3 entries across 3 versions & 1 rubygems

Version Path
phi_attrs-0.2.2 lib/phi_attrs/configure.rb
phi_attrs-0.2.1 lib/phi_attrs/configure.rb
phi_attrs-0.2.0 lib/phi_attrs/configure.rb