rake task method name collision #434

chaffeqa opened this Issue Mar 15, 2011 · 2 comments


None yet
2 participants

lib/tasks/paperclip.rake throws errors when running any task due to what I'm guessing is a method name collision.

I kept getting the error:
wrong number of arguments (1 for 0)
/usr/local/lib/ruby/gems/1.8/gems/paperclip-2.3.8/lib/tasks/paperclip.rake:40:in `obtain_class'

when i changed the method names (adding a 'p_' to the beginning of both 'obtain_class' and 'obtain_attachment') they were referenced and called correctly.


sikachu commented Jun 23, 2011

I can see why that might be the case. Do you mind opening up a pull request to put them in a module?

@sikachu sikachu closed this in f7a5b91 Jun 30, 2011


sikachu commented Jun 30, 2011

I've fixed this. Thank you for reporting in.

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