Sign in through GitHub

RailsCasts Pro episodes are now free!

Learn more or hide this

sujay-gavhane's Profile

GitHub User: sujay-gavhane

Comments by

Avatar

I have one problem. I am using PaperTrail with Carrierwave gem.The model for which paper trail is enabled also has some images lets say avatar. So when PaperTrail is creating a version for that model it is storing the image as an image object not the image URL as String. so when I reify that version it breaks with the following error.

TypeError: allocator undefined for Proc
from /home/webonise/.rvm/rubies/ruby-1.9.3-p551/lib/ruby/1.9.1/psych/visitors/to_ruby.rb:281:in allocate'
from /home/webonise/.rvm/rubies/ruby-1.9.3-p551/lib/ruby/1.9.1/psych/visitors/to_ruby.rb:281:in
revive'
from /home/webonise/.rvm/rubies/ruby-1.9.3-p551/lib/ruby/1.9.1/psych/visitors/to_ruby.rb:219:in `visit_Psych_Nodes_Mapping'
............

Can you please help me with this?
It would be great if you add similar example.
Thanks..