Skip to content

Commit

Permalink
Merge pull request #2133 from paulsturgess/rails-5.1.0-fix
Browse files Browse the repository at this point in the history
Fix 5.1.0 regression from using `saved_changes` instead of `changes`
  • Loading branch information
mshibuya committed Mar 7, 2017
2 parents 87c37b7 + 053537d commit 97c028c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/carrierwave/mounter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ def serialization_column
end

def remove_previous(before=nil, after=nil)
after ||= []
return unless before

# both 'before' and 'after' can be string when 'mount_on' option is set
Expand Down

0 comments on commit 97c028c

Please sign in to comment.