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

Missing Attribute error when using only for localized fields

    • Type: Icon: Task Task
    • Resolution: Done
    • 4.0.0 final
    • Affects Version/s: None
    • Component/s: None
    • Labels:

      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?

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

              Created:
              Updated:
              Resolved: