Ruby detect if a column value has changed -
so have line:
if self.company_changed?
and works fine detects if company has changed on object. need know if database value has changed , not if value in memory has changed. tried this:
if :company_changed?
this seems work in debug mode when execute 1 line. if let run, fails in testing on infinite loop.
my question can used in ruby check see if column value has changed.
there excellent screencast on great ryan bates.
Comments
Post a Comment