.only doesn't play nice with localized fields

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Done
    • Priority: Major - P3
    • 6.0.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      In my model MyModel I have:

          field :name, type: String, localized: true
      

      I've discovered that MyModel.all.only(:name).first doesn't work well; the name field of the returned object will only contain the value for current I18n.locale, and fallbacks do not seem to work.

            Assignee:
            Emily Stolfo (Inactive)
            Reporter:
            Johnny Shields
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: