therubymug / keymaker

A multi-layer REST API Ruby wrapper for the neo4j graph database.
MIT License
62 stars 12 forks source link

default property for nodes #4

Open somebody32 opened 11 years ago

somebody32 commented 11 years ago

What is the idea behind adding active_record_id to node automatically?

May be it is better to give user opportunity to add it by hand if he wants to chain neo nodes with AR models but not as a default behaviour?

mrmicahcooper commented 11 years ago

I agree! Allow it to be independent of Active Record.

therubymug commented 11 years ago

After we tackle finders (like ActiveRecord 'where' method). Then we'll move all the ActiveRecord synchronization out into its own module. Something like Keymaker::ActiveRecordSync or something like that. That way you include it when you want/need it.