rails/rails — Issue #5068: update_attribute into after_update: stack level too deep
Author: foohey
Created: 2012-02-16 21:48:16+00:00
State: open

I'm converting step by step an old bad date
So when I edit my item, and if has changed, I want to remove old data.

```ruby
after_update :remove_old_bad_date, :if => :correct_date_changed?

def remove_old_bad_date
update_attribute(:old_bad_date, nil)
end
```

But I'm getting

```
SystemStackError in Admin::GameConsoleController#update

stack level too deep
```

it's definitely update_attribute... the callback work great without it
it's a rails bug or i'm in a wrong way ?