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

Typed array as field type

    XMLWordPrintableJSON

Details

    Description

      I'd like to be able to do this:

      field :array_of_symbols, type: Array(Symbol)    # or [Symbol] which is equivalent
      

      and have the string values in the array from the DB to be coerced to Symbols upon demongo-ization.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              johnnyshields Johnny Shields
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated: