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

to_json error #2

Closed
tranngocsam opened this issue Apr 12, 2012 · 2 comments
Closed

to_json error #2

tranngocsam opened this issue Apr 12, 2012 · 2 comments

Comments

@tranngocsam
Copy link

I got undefined method include?' for nil:NilClass Stack Trace: cloudinary (1.0.4) lib/cloudinary/carrier_wave.rb:127:informat'
cloudinary (1.0.4) lib/cloudinary/carrier_wave.rb:149:in my_filename' cloudinary (1.0.4) lib/cloudinary/carrier_wave.rb:136:inurl'
carrierwave (0.5.8) lib/carrierwave/uploader/url.rb:30:in as_json' activesupport (3.2.2) lib/active_support/json/encoding.rb:47:inblock in encode'
activesupport (3.2.2) lib/active_support/json/encoding.rb:77:in check_for_circular_references' activesupport (3.2.2) lib/active_support/json/encoding.rb:46:inencode'
activesupport (3.2.2) lib/active_support/json/encoding.rb:31:in encode' activesupport (3.2.2) lib/active_support/core_ext/object/to_json.rb:16:into_json'
app/controllers/application_controller.rb:21:in `to_json'

When I call user.to_json, I use carrierwave for mongoid (Rails 3.2.2)

@nadavs
Copy link
Contributor

nadavs commented Apr 12, 2012

@tranngocsam Thanks for the report.
The to_json issue was fixed. We also added mongoid support.
Both are available in the newly released GEM (v1.0.7).

@nadavs nadavs closed this as completed Apr 12, 2012
@tranngocsam
Copy link
Author

Thanks Nadavs, it's fixed

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

No branches or pull requests

2 participants