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

Missing Attribute error when using only for localized fields

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 4.0.0 final
    • Component/s: None
    • Labels:

      Description

      Using latest commit dba1c17b1 and when querying on some localized field, say

      > p=Product.only(:name).first # name is localized field
      > p.name

      Results in Missing attribute: 'name'.

      Any idea?

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            basharabdullah basharabdullah
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: