Also this line should probably be: 

```ruby
@new_resource.updated_by_last_action(true)
```