Used by tribunals_frontend and tribunals_api to share configuration. To use: 1) add "gem 'moj_tribunals_config'" to your Gemfile 2) in an initializer, add the following code: require 'moj_tribunals_config' my_config = Moj::Tribunals::ConfigLoader.new.load This will load the default config files from the gem. To load different files, you can provide an alternative path to the ConfigLoader.new method, e.g. my_config = Moj::Tribunals::ConfigLoader.new('/my/alternative/config/path').load To just load config for a specific tribunal, you can do: config_loader = Moj::Tribunals::ConfigLoader.new config_file = config_loader.config_file_for('utiac') config_loader.load_file( config_file ) RailsConfig integration ======================= If you're using the RailsConfig gem, your intializer can just do something like: files = Moj::Tribunals::ConfigLoader.new.config_files files.each{ |f| Settings.add_source!( f ) } Settings.reload!

Required Ruby Version

>= 0

Authors

Al Davidson

Versions

  1. 1.6.0
    1. source

      1. 1.6.0 source March 05, 2015 (11 KB)
  2. 1.5.2
    1. source

      1. 1.5.2 source February 25, 2015 (11 KB)
  3. 1.5.1
    1. source

      1. 1.5.1 source February 18, 2015 (11 KB)
  4. 1.5.0
    1. source

      1. 1.5.0 source February 10, 2015 (11 KB)
  5. 1.4.0
    1. source

      1. 1.4.0 source February 06, 2015 (11 KB)
Show all versions (9 total)

SHA 256 checksum