Skip to content

Commit

Permalink
Revert "Revert "changed after_destroy with after_commit ... :on => :d…
Browse files Browse the repository at this point in the history
…estroy""

This reverts commit a5cc1c0.
  • Loading branch information
bensie committed Nov 8, 2012
1 parent 3805196 commit 12d2655
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/carrierwave/orm/activerecord.rb
Expand Up @@ -27,7 +27,7 @@ def mount_uploader(column, uploader=nil, options={}, &block)


after_save :"store_#{column}!" after_save :"store_#{column}!"
before_save :"write_#{column}_identifier" before_save :"write_#{column}_identifier"
after_destroy :"remove_#{column}!" after_commit :"remove_#{column}!", :on => :destroy
before_update :"store_previous_model_for_#{column}" before_update :"store_previous_model_for_#{column}"
after_save :"remove_previously_stored_#{column}" after_save :"remove_previously_stored_#{column}"


Expand Down

1 comment on commit 12d2655

@artempartos
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why its revert?
For assotiations store_path if doesnt work!
#1191

Please sign in to comment.