Categories: None [Edit]

moj_tribunals_config

https://rubygems.org/gems/moj_tribunals_config
https://github.com/aldavidson/moj_tribunals_config
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!

Total

Ranking: 50,463 of 198,774
Downloads: 24,388

Daily

Ranking: 103,943 of 198,739
Downloads: 0

Depended by

RankDownloadsName

Depends on

RankDownloadsName
13,972,983,480bundler
291,043,852,410rspec
97521,925,948simplecov
109492,596,321byebug
142378,331,571rdoc
1,05949,300,199shoulda
4,4252,346,875jeweler

Owners

#GravatarHandle
1icondrsnooks