…iewave0.10 * rafaelgaspar-carrierwave-0.10.0: Ops, forgot to add the new gemfile on travis config file. Change gem spec to allow carrierwave 0.10.0, and create a new gemfile for carrierwave 0.9.0. Document#image_identifier actually should be blank and not exactly '' after removing the image. Update for some changes in the I18n paths for error messages in carrierwave 0.10.0.
… after removing the image.
Sending `remove_file = "1"` to an embedded document does not work: Mongoid won’t consider the document dirty and so `save` won’t do anything. (Note that this bug only occurs if there are no other changes to the document.) I'm not 100% sure how this relates to #95 – calling `uploader_column_will_change!` seems to suffice in this case.
…hen uploading a new file in an embedded document (#64)
1. Added two failing tests that illustrate the problem. 2. Fixed issue by changing serializable hash to use column.to_sym instead of string interpolation (which overwrites the method definition at the time mount_uploader is called) 3. Fix an unrelated issue that caused my tests to fail: check that options are defined before sending : (which nil doesn't repond to)
# By ahoward (7) and others # Via Ryan McGeary (2) and volmer (1) * mongoid-3.0: It works with CarrierWave 0.6 and greater Updated Carrierwave to version 0.7.0 zero config namespacing and version bumping. sigh. i am not positive about the correct default config... typo update deps update README.md teh specs pass. Upped mongoid dependency to 3.0.0 Updated Mongoid's `store_in` syntax Switched to using Mongoid's new test connection interface Upped mongoid dependency to ~> 3.0.0.rc Bumped version in prep for Mongoid 3.0 support Conflicts: README.md
Custom behavior for mounts now works more like ActiveRecord's dirty behavior. Mongoid doesn't deem an attribute as changed unless the new value is different than the original. Given that CarrierWave caches files before save, it's necessary to know that there's a pending change even though the attribute value itself might not reflect that yet. Fixes #23
* piotrj/embed_one_fix: Fix for embed_one documents