Hey guys,

One of the things I've noticed with DataMapper's dirty attribute
tracking is that there doesn't seem to be an elegant way to mark
attributes as dirty when they're modified in-place.  For example, you
might have the following:

  p = Person.get(1)
  p.name << "foo"
  p.dirty?   # => false

Ideally, there would be a way to mark an attribute as dirty (like
ActiveRecord's {attribute}_will_change!).  Right now, the way to
manually do this is pretty brittle from release to release.

Is this a feature that's been considered before or is it open to
consideration?  For what it's worth, the reason I'm looking for this
functionality is that I need it to properly save DataMapper records in
state_machine when a loopback occurs.  I'd like to have a more stable
implementation for that scenario (rather than messing with things in
DataMapper that are likely intended to be for internal usage only).

Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"DataMapper" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/datamapper?hl=en.

Reply via email to