{"action":"created","issue":{"url":"https://api.github.com/repos/mthiede/rgen/issues/26","labels_url":"https://api.github.com/repos/mthiede/rgen/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/mthiede/rgen/issues/26/comments","events_url":"https://api.github.com/repos/mthiede/rgen/issues/26/events","html_url":"https://github.com/mthiede/rgen/issues/26","id":94127414,"number":26,"title":"Reference to another model builder","user":{"login":"nicoh","id":367250,"avatar_url":"https://avatars.githubusercontent.com/u/367250?v=3","gravatar_id":"","url":"https://api.github.com/users/nicoh","html_url":"https://github.com/nicoh","followers_url":"https://api.github.com/users/nicoh/followers","following_url":"https://api.github.com/users/nicoh/following{/other_user}","gists_url":"https://api.github.com/users/nicoh/gists{/gist_id}","starred_url":"https://api.github.com/users/nicoh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicoh/subscriptions","organizations_url":"https://api.github.com/users/nicoh/orgs","repos_url":"https://api.github.com/users/nicoh/repos","events_url":"https://api.github.com/users/nicoh/events{/privacy}","received_events_url":"https://api.github.com/users/nicoh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-09T19:04:18Z","updated_at":"2015-07-10T12:21:11Z","closed_at":null,"body":"The following is more a question than an issue. I have the following situation: I have two meta-models, let's say \"car.rb\" and \"wheel.rb\". Now I would like to make within the \"Car\" ModelBuilder a reference to a Wheel created by the Wheel model builder. Is there any standard way? Note, in the Car metamodel I manually inserted the following:\r\n\r\n```ruby\r\nrequire_relative 'wheel'\r\n...\r\nCarMetaModel::Car.contains_many_uni 'wheels', WheelMetaModel::Wheel\r\n``` "},"comment":{"url":"https://api.github.com/repos/mthiede/rgen/issues/comments/120398219","html_url":"https://github.com/mthiede/rgen/issues/26#issuecomment-120398219","issue_url":"https://api.github.com/repos/mthiede/rgen/issues/26","id":120398219,"user":{"login":"nicoh","id":367250,"avatar_url":"https://avatars.githubusercontent.com/u/367250?v=3","gravatar_id":"","url":"https://api.github.com/users/nicoh","html_url":"https://github.com/nicoh","followers_url":"https://api.github.com/users/nicoh/followers","following_url":"https://api.github.com/users/nicoh/following{/other_user}","gists_url":"https://api.github.com/users/nicoh/gists{/gist_id}","starred_url":"https://api.github.com/users/nicoh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicoh/subscriptions","organizations_url":"https://api.github.com/users/nicoh/orgs","repos_url":"https://api.github.com/users/nicoh/repos","events_url":"https://api.github.com/users/nicoh/events{/privacy}","received_events_url":"https://api.github.com/users/nicoh/received_events","type":"User","site_admin":false},"created_at":"2015-07-10T12:21:11Z","updated_at":"2015-07-10T12:21:11Z","body":"Thanks for the help. Option a) seems to work partially. The problem which remains (I guess due to my lack of Ruby knowledge) is how to reference the \"Continental\" wheel in the code below.  \r\n\r\n```ruby\r\nrequire 'rgen/model_builder'\r\nrequire_relative '../generated/test'\r\n\r\nRGen::ModelBuilder.build(TestMetaModel) do\r\n\tRGen::ModelBuilder.build(TestMetaModel::WheelPackage) do\r\n\t  \tWheel \"Continental\"\r\n\tend\r\n\t\r\n\tRGen::ModelBuilder.build(TestMetaModel::CarPackage) do\r\n  \t\tCar \"Audi\", :wheel => [\"Continental\"]\r\n  \tend\r\nend\r\n```\r\n\r\nI guess I need to convert the wheel block in a proc, or something else? "}}