unageanu/jiji2

View on GitHub
src/jiji/configurations/mongoid_configuration.rb

Summary

Maintainability
A
1 hr
Test Coverage

Consider simplifying this complex logical expression.
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']
Severity: Major
Found in src/jiji/configurations/mongoid_configuration.rb - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status