Sha256: c0df36c09275da79194f0c6fffd74240412b546a9df2ccb49f0b583c407bc0d3

Contents?: true

Size: 617 Bytes

Versions: 18

Compression:

Stored size: 617 Bytes

Contents

module Naf
	DEFAULT_PAGE_OPTIONS = [10, 20, 50, 100, 250, 500, 750, 1000, 1500, 2000]
	LOGGING_ARCHIVE_DIRECTORY = "/archive"
	if ['test', 'development'].include?(Rails.env)
		LOGGING_ROOT_DIRECTORY = 'var/log'
	else
		LOGGING_ROOT_DIRECTORY = '/var/log'
	end

  NAF_DATABASE_HOSTNAME = Rails.configuration.database_configuration[Rails.env]['host'].present? ?
    Rails.configuration.database_configuration[Rails.env]['host'] : 'localhost'
  NAF_DATABASE = Rails.configuration.database_configuration[Rails.env]['database']
  PREFIX_PATH = "#{LOGGING_ROOT_DIRECTORY}/naf/#{NAF_DATABASE_HOSTNAME}/#{NAF_DATABASE}"

end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
naf-2.1.13 config/initializers/naf.rb
naf-2.1.12 config/initializers/naf.rb
naf-2.1.11 config/initializers/naf.rb
naf-2.1.10 config/initializers/naf.rb
naf-2.1.9 config/initializers/naf.rb
naf-2.1.8 config/initializers/naf.rb
naf-2.1.6 config/initializers/naf.rb
naf-2.1.5 config/initializers/naf.rb
naf-2.1.4 config/initializers/naf.rb
naf-2.1.3 config/initializers/naf.rb
naf-2.1.2 config/initializers/naf.rb
naf-2.1.1 config/initializers/naf.rb
naf-2.1.0 config/initializers/naf.rb
naf-2.0.4 config/initializers/naf.rb
naf-2.0.3 config/initializers/naf.rb
naf-2.0.2 config/initializers/naf.rb
naf-2.0.1 config/initializers/naf.rb
naf-2.0.0 config/initializers/naf.rb