ruby-rdf / spira

Spira is a framework for viewing RDF data as model objects
http://rubygems.org/gems/spira
The Unlicense
58 stars 36 forks source link

cascade inserting? #12

Closed cagdasolgun closed 11 years ago

cagdasolgun commented 11 years ago

Resources with has_many relationships which derived from Spira::Base do cascade inserting?

cordawyn commented 11 years ago

Do you mean mass creation of resources, where Spira::Base#create takes an array of hashes like ActiveRecord::Base#create? No, Spira cannot do that.

cagdasolgun commented 11 years ago

I created a hook to perform this action. Checks if relation type is objecttype and trigger save action for each related objects. Thanks for answer.