andreasronge/neo4j — Issue #151: symbol type not auto-detected
Author: pehrlich
Created: 2012-01-31 21:09:35+00:00
State: open

From: https://github.com/andreasronge/neo4j/pull/79

Propertys can't automatically determine what to do when given a symbol. I took a look, but couldn't fully figure why not:

# with :type => Symbol
> u.name = :peter
"converting: Symbol, Class"
"converting: Symbol, Class"
=> :peter
# with no :type specification:
jruby-1.6.5 :004 > u.last_name = :ehrlich
=> :ehrlich
jruby-1.6.5 :005 > u.save
"converting: String, Class"
"converting: Time, Class"
"converting: Time, Class"
NativeException: java.lang.IllegalArgumentException: Unknown property type on: ehrlich, class org.jruby.RubySymbol