Skip to content

Commit

Permalink
stopped papercrop from automatically adding itself as a processor for…
Browse files Browse the repository at this point in the history
… every style
  • Loading branch information
davidmccoy committed May 19, 2016
1 parent b001c15 commit a1c22bc
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions lib/papercrop/model_extension.rb
Expand Up @@ -39,11 +39,6 @@ def crop_attached_file(attachment_name, opts = {})
definitions = Paperclip::Tasks::Attachments.instance.definitions_for(self)
end

processors = definitions[attachment_name][:processors] ||= []
unless processors.include? :papercrop
processors << :papercrop
end

after_update :"reprocess_to_crop_#{attachment_name}_attachment"
end

Expand Down

0 comments on commit a1c22bc

Please sign in to comment.