Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ruckus-matte/498922 to your computer and use it in GitHub Desktop.
Save ruckus-matte/498922 to your computer and use it in GitHub Desktop.
if Gem.available?('paperclip')
gem 'paperclip'
gemrootdir = File.join(Gem.datadir('paperclip'), '../..')
pre232taskfile = File.join(gemrootdir, 'tasks/paperclip_tasks.rake')
post232taskfile = File.join(gemrootdir, 'lib/tasks/paperclip.rake')
# if post2.3.2 directory exists
if File.exists?(File.expand_path(post232taskfile))
import post232taskfile
else
import pre232taskfile
end
end
# announced at http://groups.google.com/group/paperclip-plugin/browse_thread/thread/3d3b8ba0a0628b64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment