Skip to content
New issue

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

Fix to_json / serializable hash issue when using two uploaders on the same model. #81

Merged
merged 1 commit into from
Jan 15, 2013

Conversation

peteonrails
Copy link
Contributor

  1. Added two failing tests that illustrate the problem.
  2. Fixed issue by changing serializable hash to use column.to_sym instead of string interpolation (which overwrites the method definition at the time mount_uploader is called)
  3. Fix an unrelated issue that caused my tests to fail: check that options are defined before sending :[](which nil doesn't repond to)

1. Added two failing tests that illustrate the problem.
2. Fixed issue by changing serializable hash to use column.to_sym instead of string interpolation (which overwrites the method definition at the time mount_uploader is called)
3. Fix an unrelated issue that caused my tests to fail: check that options are defined before sending :[] (which nil doesn't repond to)
rmm5t added a commit that referenced this pull request Jan 15, 2013
Fix to_json / serializable hash issue when using two uploaders on the same model.
@rmm5t rmm5t merged commit 60d63a0 into carrierwaveuploader:master Jan 15, 2013
@rmm5t
Copy link
Member

rmm5t commented Jan 15, 2013

Thanks Pete!

@rmm5t
Copy link
Member

rmm5t commented Jan 17, 2013

This fix was just released in v0.3.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants