Get Carrierwave working #235

Closed
andreasronge opened this Issue Jan 5, 2013 · 3 comments

Projects

None yet

3 participants

@andreasronge
Member

Looks like the Neo4j::Rails::Model is not initialized before the initialize callback is called.
When running the RSpecs for carrierwave-neo4j it will raise the following exception:

     Failure/Error: puts "NEW MODIFIED RESET #{user_class.new}"
     NoMethodError:
       undefined method `[]' for nil:NilClass
     # /Users/andreasronge/projects/neo4j/lib/neo4j/rails/attributes.rb:237:in `read_attribute'
     # /Users/andreasronge/projects/neo4j/lib/neo4j/rails/attributes.rb:204:in `read_attribute_with_type_conversion'
     # /Users/andreasronge/projects/neo4j/lib/neo4j/rails/attributes.rb:158:in `attributes'
     # /Users/andreasronge/projects/neo4j/lib/neo4j/rails/attributes.rb:157:in `attributes'
     # /Users/andreasronge/projects/neo4j/lib/neo4j/rails/callbacks.rb:47:in `initialize_with_callbacks'
     # /Users/andreasronge/projects/neo4j/lib/neo4j/rails/persistence.rb:91:in `new'
     # ./spec/neo4j_spec.rb:14:in `reset_class'

See also https://groups.google.com/d/msg/neo4jrb/-/xPyTSEI2iKIJ

@andreasronge andreasronge added a commit that referenced this issue Jan 5, 2013
@andreasronge andreasronge Make sure freeze does not have side effects, #235
Needed by carrierwave-neo4j
2ba7501
@subvertallchris
Member

Ooold issue but let's see how CarrierWave deals with 3.0!

@subvertallchris
Member

Will be resolved when neo4jrb/carrierwave-neo4j#1 is merged.

@cheerfulstoic
Member

👯

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment