Given this model

class Slot

  property :dongle_name, String

  def comment
    dongle_name[42..62]
  end

  def comment=(c)
    dongle_name[42..62] = c[0..62-42]
  end
end

How can I mark the model for update when comment= is called?
slot.comment = "test"
slot.dirty? => false

-- 
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