Created
July 20, 2010 12:27
-
-
Save pvdb/482893 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This snippet can be used to work around this Paperclip issue reported against Rails3...