In place changes not updated on save

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Duplicate
    • Priority: Major - P3
    • None
    • Affects Version/s: 7.1.0
    • Component/s: Attributes
    • None
    • Environment:
      Ruby on Rails
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      In place modifier function calls such as .gsub! on attributes do not update on save.

      > foo = Foo.first
      > foo.bar
      "My random value"
      > foo.bar.gsub!(/random/, '')
      "My  value"
      > foo.changed?
      false
      > foo.save # does not changes value of bar to "My  value"
      > foo.bar
      "My  value"
      > foo = Foo.first
      > foo.bar
      "My  value"

            Assignee:
            Emily Giurleo (Inactive)
            Reporter:
            Arslan Chattha
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: