Skip to content

Commit

Permalink
Release 3.0.0.alpha.10
Browse files Browse the repository at this point in the history
ActiveRel support
  • Loading branch information
andreasronge committed Aug 17, 2014
1 parent e65b4e2 commit 09642d3
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 4 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
== 3.0.0.alpha.10
* ActiveRel support, see Wiki pages (chris #393)

== 3.0.0.alpha.9
* Complete rewrite of the query api, see wiki page (#406, chris, brian)
* Performance improvements (#382,#400, #402, chris)
Expand Down
4 changes: 2 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ source 'http://rubygems.org'
gemspec


#gem 'neo4j-core', path: '../neo4j-core'
gem 'neo4j-core', :git => 'https://github.com/andreasronge/neo4j-core.git'
gem 'neo4j-core' #, path: '../neo4j-core'
#gem 'neo4j-core', :git => 'https://github.com/andreasronge/neo4j-core.git'
#gem 'orm_adapter', :path => '../orm_adapter'

gem 'coveralls', require: false
Expand Down
5 changes: 4 additions & 1 deletion example/blog/app/models/comment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ class Comment
property :text

index :title
has_one :in, :post, origin: :comments, rel_class: PostComment
has_one :in, :post, rel_class: PostComment

# or if PostComment is not needed
# has_one :in, :post

end
5 changes: 5 additions & 0 deletions example/blog/app/models/post.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ class Post
# self.title.urlize # uses https://github.com/cheef/string-urlize gem
# end

# Relationship name is defined in PostComment
# Generates a comments accessor methods for navigating/querying 'stated_opinions' outgoing relationships
has_many :out, :comments, rel_class: PostComment

# or if you don't need to use ActiveRel models:
# has_many :out, :comments

end
2 changes: 1 addition & 1 deletion lib/neo4j/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Neo4j
VERSION = "3.0.0.alpha.9"
VERSION = "3.0.0.alpha.10"
end

0 comments on commit 09642d3

Please sign in to comment.