public
Created

mongoid corrupted embedded docs stack trace

  • Download Gist
gistfile1.txt
1 2 3 4 5 6 7 8 9 10 11 12 13 14
Exception while importing: NCT01475461# (NoMethodError) "undefined method `[]' for nil:NilClass"
 
/app/vendor/bundle/ruby/1.9.1/bundler/gems/mongoid-140f31f776cd/lib/mongoid/factory.rb:33:in `from_db'
/app/vendor/bundle/ruby/1.9.1/bundler/gems/mongoid-140f31f776cd/lib/mongoid/relations/builders/embedded/many.rb:28:in `block (2 levels) in build'
/app/vendor/bundle/ruby/1.9.1/bundler/gems/mongoid-140f31f776cd/lib/mongoid/relations/builders/embedded/many.rb:26:in `each'
/app/vendor/bundle/ruby/1.9.1/bundler/gems/mongoid-140f31f776cd/lib/mongoid/relations/builders/embedded/many.rb:26:in `block in build'
/app/vendor/bundle/ruby/1.9.1/bundler/gems/mongoid-140f31f776cd/lib/mongoid/relations/builders/embedded/many.rb:25:in `tap'
/app/vendor/bundle/ruby/1.9.1/bundler/gems/mongoid-140f31f776cd/lib/mongoid/relations/builders/embedded/many.rb:25:in `build'
/app/vendor/bundle/ruby/1.9.1/bundler/gems/mongoid-140f31f776cd/lib/mongoid/relations/accessors.rb:43:in `create_relation'
/app/vendor/bundle/ruby/1.9.1/bundler/gems/mongoid-140f31f776cd/lib/mongoid/relations/accessors.rb:26:in `build'
/app/vendor/bundle/ruby/1.9.1/bundler/gems/mongoid-140f31f776cd/lib/mongoid/relations/accessors.rb:100:in `block (3 levels) in getter'
/app/vendor/bundle/ruby/1.9.1/bundler/gems/mongoid-140f31f776cd/lib/mongoid/relations/builders.rb:47:in `building'
/app/vendor/bundle/ruby/1.9.1/bundler/gems/mongoid-140f31f776cd/lib/mongoid/relations/accessors.rb:99:in `block (2 levels) in getter'
/app/app/models/study.rb:223:in `prune_locations'

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.