lib/cloudinary/carrier_wave/storage.rb in cloudinary-1.1.5 vs lib/cloudinary/carrier_wave/storage.rb in cloudinary-1.1.6

- old
+ new

@@ -50,9 +50,13 @@ # Do nothing - versions are not handled locally. end nil end + def identifier + uploader.file.respond_to?(:storage_identifier) ? uploader.file.storage_identifier : super + end + # Updates the model mounter identifier with version information. # # Carrierwave uses hooks when integrating with ORMs so it's important to # update the identifier in a way that does not trigger hooks again or else # you'll get stuck in a loop.