Uploaded image for project: 'Mongoid'
  1. Mongoid
  2. MONGOID-4964

Allow passing locale parameter as symbol

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Do
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: 7.1.2
    • Component/s: Dev Exp
    • None
    • Environment:
      Any

      It's not a big problem but it would be nice if it would be consistent with "The Ruby way".

      MongoDB supports locale sort order for quite some time now. 

      Model.all.order_by(name: 1).collation(locale: 'sl')

      But locale option can only be passed as string. Allow it also to be passed as symbol.

      Model.all.order_by(name: 1).collation(locale: :sl)

      by
      TheR

            Assignee:
            Unassigned Unassigned
            Reporter:
            d_rems@yahoo.com Damjan Rems
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: