Implement `_was` and `changes` for in-place mutations of AR attributes

Sorry, will update as soon as I'm in the office.
On Aug 5, 2014 2:49 AM, "Godfrey Chan" <notifications@github.com> wrote:

> In activerecord/lib/active_record/attribute_methods/dirty.rb:
>
> > @@ -51,6 +51,10 @@ def changed
> >          super | changed_in_place
> >        end
> >
> > +      def changes
> > +        super.merge(in_place_changes)
> > +      end
> > +
> >        def attribute_changed?(attr_name, options = {})
> >          result = super
> >          # We can't change "from" something in place. Only setters can define
>
> (sorry for the hold up by the way :/ )
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/rails/rails/pull/16189/files#r15800802>.
>