Skip to content
Commits on May 2, 2011
  1. @andreasronge
  2. @andreasronge

    Fixed so that the relationship is saved for Neo4j::Rails::Model - per…

    andreasronge committed May 2, 2011
    …son.friends.create(:name => 'foo'). Release 1.1.0.beta.2
Commits on Apr 30, 2011
  1. @andreasronge

    Merged pull request #22 from joeleaver/master.

    andreasronge committed Apr 29, 2011
    Works with latest devise
Commits on Apr 29, 2011
  1. @joeleaver
  2. @joeleaver
  3. @joeleaver
Commits on Apr 28, 2011
  1. @andreasronge

    Release of 1.1.0.beta.1

    andreasronge committed Apr 28, 2011
Commits on Apr 27, 2011
  1. @andreasronge
  2. @andreasronge
  3. @andreasronge

    Merged pull request #21 from dsisnero/patch-1.

    andreasronge committed Apr 27, 2011
    changed the create incoming and create specs to say that it "create a new
  4. @andreasronge

    Merged pull request #20 from junegunn/master.

    andreasronge committed Apr 27, 2011
    A suggestion on NodeMixin interface
  5. @dsisnero

    changed the create incoming and create specs to say that it "create a…

    dsisnero committed Apr 26, 2011
    … new node and save it" since it should be_persisted
Commits on Apr 26, 2011
  1. @junegunn

    property and index class methods modified to take arbitrary number of…

    junegunn committed Apr 26, 2011
    … symbols optionally followed by options hash
Commits on Apr 25, 2011
  1. @andreasronge

    Merged pull request #19 from junegunn/master.

    andreasronge committed Apr 25, 2011
    Default `nodes' invocation for Algo path finders
  2. @junegunn

    nodes invocation made optional

    junegunn committed Apr 25, 2011
Commits on Apr 24, 2011
  1. @andreasronge
  2. @andreasronge
  3. @andreasronge

    Impl node.friends.create, node.friends.build and node.friends_rel.cre…

    andreasronge committed Apr 24, 2011
    …ate, node.friends_rel.build [#154]
  4. @andreasronge
  5. @andreasronge

    Added create and build on Neo4j::Rails::Model relationships [#156]

    andreasronge committed Apr 24, 2011
    Increase code coverage. Included the RCov gem in Rakefile.
  6. @andreasronge
Commits on Apr 18, 2011
  1. @andreasronge

    fixed failing spec [#156]

    andreasronge committed Apr 18, 2011
Commits on Apr 17, 2011
  1. @andreasronge

    Better support for relationship for rails [#154]

    andreasronge committed Apr 17, 2011
    You can now create relationship just like for Neo4j::NodeMixin and Neo4j::Relationship
    Example
    
    rel = Neo4j::Rails::Relationship.new(:friends, a, b)
    a.friends.include?(b) #=> true
    b.incoming(:friends).include(a) #= > true
    
    Not sure if validation on 'rel' should be performed if 'a' is saved
    What should happend when a is saved and for example the relationship between a and b is invalid ???
Commits on Apr 16, 2011
  1. @andreasronge
  2. @andreasronge
Commits on Apr 15, 2011
  1. @andreasronge
Commits on Apr 14, 2011
  1. @andreasronge

    Got some RSpecs working with validates_associated for Neo4j::Rails::M…

    andreasronge committed Apr 14, 2011
    …odel [#156]
    
      class Person < Neo4j::Rails::Model
        has_n(:friends)
        # will validate both relationship objects between person and the friend and
        # the friend node
        validates_associated :friends
      end
    
     Not implemented yet support for has_one.
     More specs needed.
  2. @andreasronge

    modified the traverser to allow iterating over paths and relationship…

    andreasronge committed Apr 14, 2011
    …s not just over end_nodes [#161 state:resolved]
    
    Paths (will yield  Java neo4j paths objects):
      node.outgoing(:friends).outgoing(:knows).depth(:all).paths.each  ...
    
     Relationships (will yield Java Neo4j Relationship objects):
       node.outgoing(:friends).outgoing(:knows).depth(:all).rels.each  ...
    
     Nodes:
      node.outgoing(:friends).outgoing(:knows).depth(:all).each  ...
  3. @andreasronge
Commits on Apr 11, 2011
  1. @andreasronge

    change how to specify types on properties [#155 state: resolved]

    andreasronge committed Apr 11, 2011
    Instead of
      class Foo << Neo4j::Model
        property :since, :type => Date
      end
    
    You now do like this
    
      class Foo << Neo4j::Model
        property :since, :type => :date
      end
    
     This because we want a conversion of booleans which does not have class.
Commits on Apr 10, 2011
  1. @andreasronge

    update_attributes should convert values according to Type [#155 state…

    andreasronge committed Apr 10, 2011
    …: resolved]
    
    if the Neo4j::Rails::Model has specified a type on a property then the update_attributes should convert that for me
    
    class Person < Neo4j::Rails::Model
    property :age, :type => Fixnnum end
    
    @person.update_attributes(params[:person]) should work without me needing to convert the params[:person][:age] to fixnum
    
    # or
    p = Person.new
    p.age = "123"
    p.age.should == 123
  2. @andreasronge

    Fixed validation on Rails relationship - If a rails relationship is i…

    andreasronge committed Apr 10, 2011
    …nvalid then the start and end node of that relationship will also be invalid
Commits on Apr 8, 2011
  1. @andreasronge
  2. @andreasronge

    ActiveModel support for Relationships [#156]

    andreasronge committed Apr 8, 2011
    Neo4j::Rails::Relationship is now ActiveModel compliant.
Commits on Mar 13, 2011
  1. @andreasronge
Something went wrong with that request. Please try again.