Uploaded image for project: 'Ruby Driver'
  1. Ruby Driver
  2. RUBY-1066

Conflict with ActiveSupport assert_valid_keys

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 1.12.4
    • Affects Version/s: 1.12.3
    • Component/s: None
    • None
    • Environment:
      All

      https://github.com/mongodb/mongo-ruby-driver/blob/1.x-stable/lib/mongo/utils/core_ext.rb#L30

      Doesn't check if the function already exists, so it overrides rails' implementation ( see https://github.com/rails/rails/blob/4-2-stable/activesupport/lib/active_support/core_ext/hash/keys.rb#L71 ) with a slightly different implementation, which causes compatibilities issues on seemingly unrelated topics (see https://github.com/Casecommons/pg_search/issues/257 )

            Assignee:
            emily.stolfo Emily Stolfo
            Reporter:
            titeiko@gmail.com Marion Duprey
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: