Mongoid silently ignores options given at top level in YAML configuration

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 7.3.0
    • Affects Version/s: None
    • Component/s: Dev Exp
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      I accidentally added max_pool_size under 'default', without putting it under 'options', and it was silently accepted, but not acted on.

      Expected behavior: it should have posted at least a warning about an invalid configuration option, since that was not valid without being under 'options'.

      production:
        clients:
          default:
            uri: <%= ENV['MONGO_URL'] %>
            max_pool_size: 20
      
      

              Assignee:
              Dmitry Rybakov
              Reporter:
              David Welton
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: