Use mongoid write_attribute method instead of attribute= method in order to support mongoid dynamic field assignment