Compare projects
Project comparisons allow you to view any selection of projects side by side just like they're shown on regular categories or in search results. You can try out an example or start yourself by adding a library to the comparison via the input below. You can also easily share your current comparison with others by sending the URL of the current page.
0.0
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!
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
Activity