Method invocation call for Nil attribute #3

merged 1 commit into from Jun 11, 2012


None yet

2 participants

kir commented Feb 2, 2011


Here is a fix for the problem which arose on my production server when updated_at column was null (because it was just added by a migration). This resulted in exception when a record was updated, because 'index_delta' callback called 'toggled' method for nill column.

I've added the test, but I didn't run it - couldn't setup environment with older rspec.

Thanks for attention,

@pat pat merged commit a2d0b07 into pat:master Jun 11, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment