src/jiji/configurations/mongoid_configuration.rb
Consider simplifying this complex logical expression. Open
Open
if ENV['MONGOLAB_URI'] || ENV['MONGODB_URI']
u = URI.parse(ENV['MONGOLAB_URI'] || ENV['MONGODB_URI'])
config = YAML.load_file(mongoid_setting_file)['default']
sessions = config['clients']['default']