We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mount_uploader :avatar, AvatarUploader, :mount_on => :avatar_name
When I upload a new avatar then I get an error: NoMethodError (undefined method `avatar_will_change!' for #<>.
This is because carrierwave/orm/activerecord.rb doesn't respect mount_on parameter.
The text was updated successfully, but these errors were encountered:
Ah, yes, I think this line needs to respect the mount_on option:
https://github.com/jnicklas/carrierwave/blob/126832280f34be8cc90ba296bbff4e662368ed3f/lib/carrierwave/orm/activerecord.rb#L33
Any chance you could work up a pull request (with a new test) ?
Sorry, something went wrong.
#276 Here. I hope it is good enough. I'm not very familiar with this gem source code.
No branches or pull requests
mount_uploader :avatar, AvatarUploader, :mount_on => :avatar_name
When I upload a new avatar then I get an error:
NoMethodError (undefined method `avatar_will_change!' for #<>.
This is because carrierwave/orm/activerecord.rb doesn't respect mount_on parameter.
The text was updated successfully, but these errors were encountered: