This was yet another awesome tutorial. I have chosen to go with your custom locking mechanism in my current project. Although I had to figure out my way through using an added time based field in the database as you mentioned at the end of the video, I did make one change to your handle_conflict method, changing the line that reads:
This was yet another awesome tutorial. I have chosen to go with your custom locking mechanism in my current project. Although I had to figure out my way through using an added time based field in the database as you mentioned at the end of the video, I did make one change to your handle_conflict method, changing the line that reads:
errors.add name, "was #{values.first}"
to:
To handle cases where something was added to a blank field during edit.