#119 ✓resolved

[ActiveModel] variable type of #to_key's output.

Reported by ximus | April 28th, 2010 @ 01:35 PM


The Neo4j.rb ActiveModel adapter outputs a Fixnum when #to_key is called. The Lint tests don't specify wether this is Ok or it should be a String but ActionController expects a String.

There is a ticket filed here about this in the rails tracker.

This is may not be a bug in neo4j.rb, need to wait and see what the Rails team has to say.

Comments and changes to this ticket

  • Andreas Ronge

    Andreas Ronge November 4th, 2010 @ 09:31 PM

    • State changed from “new” to “resolved”
    • Assigned user set to “Andreas Ronge”
    • Milestone order changed from “0” to “0”

    in 1.0.0.beta it does

    def to_key

        persisted? ? [:id] : nil


    Which I think is correct.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Neo4j.rb is a graph database framework for JRuby.

It provides:

* Mapping of ruby objects to nodes in networks rather than in tables.
* Storage of ruby object to a file system.
* Fast traversal of relationships between nodes in a hugh node space.
* Transaction with rollbacks support.
* Indexing and quering of ruby objects.
* Integration with Rails

People watching this ticket