Dirty tracking and save callbacks #142

Open
samlown opened this Issue Apr 19, 2012 · 1 comment

Comments

Projects
None yet
2 participants
Owner

samlown commented Apr 19, 2012

Save callbacks are not triggered when save is called unless something in the model has changed. This is incorrect, dirty tracking should only limit sending data to the server, not the save process itself.

Setting the disable_dirty attribute to true on the model before the save is called gets around this issue:

def active=(value)
  self.disable_dirty = true
  @active = value
end

sam

jayniz commented Sep 17, 2013

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment