dkubb changed the topic of #datamapper to: Datamapper v1.2.0 | Mailing List: http://is.gd/aa9D | Logs: http://is.gd/qWAL7V | DataMapper 2 Renamed to ROM, see #rom-rb for development
mikecmpbll has quit [Quit: i've nodded off.]
skade has joined #datamapper
skade has quit [Quit: Computer has gone to sleep.]
v0n has quit [Ping timeout: 260 seconds]
v0n has joined #datamapper
skade has joined #datamapper
rsim has joined #datamapper
mikecmpbll has joined #datamapper
skade has quit [Quit: Computer has gone to sleep.]
skade has joined #datamapper
skade has quit [Client Quit]
rsim has quit [Quit: Leaving.]
ziyan has joined #datamapper
<ziyan>
Hi there, I am interested in using `before_save` hook to check the value of a field before it was updated and after it was updated. how can I do this in datamapper?
<ziyan>
for example, I have `car.price # 100`. then i set the value as such `car.price = 200`. When I save the value, i would like to get the old price and new price for a calculation
<ziyan>
any help is highly appreciated in this restful sunday :)
skade has joined #datamapper
skade has quit [Read error: Connection reset by peer]
ziyan has quit [Ping timeout: 245 seconds]
ziyan has joined #datamapper
postmodern has quit [Quit: Leaving]
skade has joined #datamapper
lgierth has joined #datamapper
skade has quit [Quit: Computer has gone to sleep.]
skade has joined #datamapper
g0bl1n has joined #datamapper
g0bl1n has quit [Client Quit]
ziyan has quit [Ping timeout: 245 seconds]
skade has quit [Quit: Computer has gone to sleep.]
skade has joined #datamapper
skade has quit [Quit: Computer has gone to sleep.]
skade has joined #datamapper
skade has quit [Quit: Computer has gone to sleep.]
skade has joined #datamapper
mikecmpbll has quit [Quit: i've nodded off.]
mikecmpbll has joined #datamapper
skade has quit [Quit: Computer has gone to sleep.]