Skip to content

Instantly share code, notes, and snippets.

@pvdb
Created July 20, 2010 12:27
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pvdb/482893 to your computer and use it in GitHub Desktop.
Save pvdb/482893 to your computer and use it in GitHub Desktop.
#
# http://github.com/thoughtbot/paperclip/issues/issue/247
#
#
# put this in the relevant section of your config/application.rb
#
config.after_initialize do
# copied from paperclip.rb: due to bundler, this doesn't seem to happen automagically anymore!?!
Dir.glob(File.join(File.expand_path(Rails.root), "lib", "paperclip_processors", "*.rb")).each do |processor|
require processor # PVDB don't rescue LoadError... let it rip!
end
end
@pvdb
Copy link
Author

pvdb commented Jul 20, 2010

This snippet can be used to work around this Paperclip issue reported against Rails3...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment