Skip to content

Commit

Permalink
callbacks: Return :process! to after cache
Browse files Browse the repository at this point in the history
  • Loading branch information
avgerin0s committed Apr 13, 2016
1 parent b935afe commit 839fbec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/carrierwave/uploader/processing.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module Processing
class_attribute :processors, :instance_writer => false
self.processors = []

before :cache, :process!
after :cache, :process!
end

module ClassMethods
Expand Down
3 changes: 1 addition & 2 deletions spec/uploader/callback_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
:check_extension_blacklist!,
:check_content_type_whitelist!,
:check_content_type_blacklist!,
:check_size!,
:process!
:check_size!
]
@uploader_class_1 = Class.new(CarrierWave::Uploader::Base)

Expand Down

0 comments on commit 839fbec

Please sign in to comment.