Skip to content

Instantly share code, notes, and snippets.

@johnreilly
Created March 2, 2010 21:40
Show Gist options
  • Save johnreilly/319986 to your computer and use it in GitHub Desktop.
Save johnreilly/319986 to your computer and use it in GitHub Desktop.
# File: test_helper.rb
class ActiveSupport::TestCase
...
end
### Stub out post-processing on each class that uses paperclip
### (Uses an application configuration to turn on the slow processing again, if desired.)
if APP_CONFIG[:override_paperclip_processing]
[Canvas, Message, PictureAsset, User].each do |klass|
klass.send(:before_post_process, Proc.new {|image| false})
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment