* and expose them in the jruby ENV runtime env
*/
public class SonarRailsContextListener extends RailsContextListener {
protected RailsFactory createRailsFactory() {
RailsFactory goldSpikeRailsFactoryImpl = super.createRailsFactory();
SonarContext sonarCtx = SonarContext.getInstance();
for ( String ctxKey : sonarCtx.keys() ) {
goldSpikeRailsFactoryImpl.addEnvironmentOverride( ctxKey, sonarCtx.get(ctxKey) );
}
return goldSpikeRailsFactoryImpl;
}