{"action":"created","issue":{"url":"https://api.github.com/repos/yogiben/meteor-admin/issues/121","labels_url":"https://api.github.com/repos/yogiben/meteor-admin/issues/121/labels{/name}","comments_url":"https://api.github.com/repos/yogiben/meteor-admin/issues/121/comments","events_url":"https://api.github.com/repos/yogiben/meteor-admin/issues/121/events","html_url":"https://github.com/yogiben/meteor-admin/issues/121","id":55431330,"number":121,"title":"Can't able to create admin as a package","user":{"login":"sheeshmohsin","id":4139932,"avatar_url":"https://avatars.githubusercontent.com/u/4139932?v=3","gravatar_id":"","url":"https://api.github.com/users/sheeshmohsin","html_url":"https://github.com/sheeshmohsin","followers_url":"https://api.github.com/users/sheeshmohsin/followers","following_url":"https://api.github.com/users/sheeshmohsin/following{/other_user}","gists_url":"https://api.github.com/users/sheeshmohsin/gists{/gist_id}","starred_url":"https://api.github.com/users/sheeshmohsin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sheeshmohsin/subscriptions","organizations_url":"https://api.github.com/users/sheeshmohsin/orgs","repos_url":"https://api.github.com/users/sheeshmohsin/repos","events_url":"https://api.github.com/users/sheeshmohsin/events{/privacy}","received_events_url":"https://api.github.com/users/sheeshmohsin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-25T21:37:06Z","updated_at":"2015-01-28T15:20:29Z","closed_at":null,"body":"I want to create the configuration codes for admin as a package so that i can remove or add the admin functionality as needed but at attach schema it throwing error.\r\ne.g in this line\r\nPosts.attachSchema(Schemas.Posts)\r\nIt says Posts is not defined for attaching the schema because post is defined in the app and this admin code is written as a package. Please suggest some ways to do this or to import the collections defined in my app to the package."},"comment":{"url":"https://api.github.com/repos/yogiben/meteor-admin/issues/comments/71851749","html_url":"https://github.com/yogiben/meteor-admin/issues/121#issuecomment-71851749","issue_url":"https://api.github.com/repos/yogiben/meteor-admin/issues/121","id":71851749,"user":{"login":"yogiben","id":1703155,"avatar_url":"https://avatars.githubusercontent.com/u/1703155?v=3","gravatar_id":"","url":"https://api.github.com/users/yogiben","html_url":"https://github.com/yogiben","followers_url":"https://api.github.com/users/yogiben/followers","following_url":"https://api.github.com/users/yogiben/following{/other_user}","gists_url":"https://api.github.com/users/yogiben/gists{/gist_id}","starred_url":"https://api.github.com/users/yogiben/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yogiben/subscriptions","organizations_url":"https://api.github.com/users/yogiben/orgs","repos_url":"https://api.github.com/users/yogiben/repos","events_url":"https://api.github.com/users/yogiben/events{/privacy}","received_events_url":"https://api.github.com/users/yogiben/received_events","type":"User","site_admin":false},"created_at":"2015-01-28T15:20:29Z","updated_at":"2015-01-28T15:20:29Z","body":"You need to make sure that the collection is defined before the package code is run. I suggest you attache the schema at the same time you define your collection."}}