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

Using field aliasing, update_attribute does not work using alias name

    • Type: Icon: Task Task
    • Resolution: Done
    • 3.0.6
    • Affects Version/s: None
    • Component/s: None

      Hi, using field aliasing, update_attribute does not work
      For instance, I have the field email in my model
      field :e, as: :email

      Doing like this doesnt work
      user.update_attribute(:email, 'lala@g.com')

      Only works if using real field name:
      user.update_attribute(:e, 'lala@g.com')

            Assignee:
            durran Durran Jordan
            Reporter:
            fabioperrella fabio perrella
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: