Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

rake task method name collision #434

Closed
chaffeqa opened this Issue · 2 comments

2 participants

@chaffeqa

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
Owner

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
@sikachu
Owner

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
Something went wrong with that request. Please try again.