README.md in carrierwave-mongoid-0.1.2 vs README.md in carrierwave-mongoid-0.1.3

- old
+ new

@@ -52,10 +52,12 @@ This version supports ONLY version of mongoid ~> 2.1 You can use `upload_identifier` to retrieve the original name of the uploaded file. +In the earlier version, the mount_uploader-method for mongoid had been defined in lib/carrierwave/orm/mongoid. This code has been moved to carrierwave/mongoid. If you update from earlier versions, don't forget to adjust your require accordingly in your carrierwave-initializer. + The default mount column used to be the name of the upload column plus `_filename`. Now it is simply the name of the column. Most of the time, the column was called `upload`, so it would have been mounted to `upload_filename`. If you'd like to avoid a database migration, simply use the `:mount_on` option to specify the field name explicitly. Therefore, you only have to add a `_filename` to your column name. For example, if your column is called `:upload`: ```ruby @@ -64,10 +66,8 @@ end ``` ## Known issues and limitations -It is recommended that you disable Mongoid's auto_validation on the mounted column. - -Note that embedded documents files aren't saved when parent documents are saved. +Note that files mounted in embedded documents aren't saved when parent documents are saved. You must explicitly call save on embedded documents in order to save their attached files. You can read more about this [here](https://github.com/jnicklas/carrierwave/issues#issue/81)