Double buffering for ActiveRecord models