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

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -