{"action":"created","comment":{"url":"https://api.github.com/repos/vinsol/nectarcommerce/pulls/comments/58311465","id":58311465,"diff_hunk":"@@ -0,0 +1,75 @@\n+defmodule ExtensionsManager.ModelExtension do\n+  defmacro __using__(_opts) do\n+    quote do\n+      Module.register_attribute(__MODULE__, :schema_changes, accumulate: true)\n+      Module.register_attribute(__MODULE__, :method_block, accumulate: true)\n+\n+      import ExtensionsManager.ModelExtension, only: [add_to_schema: 4, add_to_schema: 3, include_method: 1]\n+      @before_compile ExtensionsManager.ModelExtension\n+\n+      defmacro __using__(_opts) do","path":"apps/extensions_manager/lib/extensions_manager/model_extension.ex","position":10,"original_position":10,"commit_id":"0307acea114f2a8b2d8a0db1f2ad3625006696e7","original_commit_id":"0307acea114f2a8b2d8a0db1f2ad3625006696e7","user":{"login":"mgwidmann","id":5035724,"avatar_url":"https://avatars.githubusercontent.com/u/5035724?v=3","gravatar_id":"","url":"https://api.github.com/users/mgwidmann","html_url":"https://github.com/mgwidmann","followers_url":"https://api.github.com/users/mgwidmann/followers","following_url":"https://api.github.com/users/mgwidmann/following{/other_user}","gists_url":"https://api.github.com/users/mgwidmann/gists{/gist_id}","starred_url":"https://api.github.com/users/mgwidmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mgwidmann/subscriptions","organizations_url":"https://api.github.com/users/mgwidmann/orgs","repos_url":"https://api.github.com/users/mgwidmann/repos","events_url":"https://api.github.com/users/mgwidmann/events{/privacy}","received_events_url":"https://api.github.com/users/mgwidmann/received_events","type":"User","site_admin":false},"body":"Does defining a `__using__/1` prevent the user from defining their own `__using__/1`? Since most `use X` statements are at the top, that'd mean this one would match everything and any other `__using__/1` definitions would generate a compiler warning and never match.","created_at":"2016-04-03T14:50:26Z","updated_at":"2016-04-03T14:50:26Z","html_url":"https://github.com/vinsol/nectarcommerce/pull/47#discussion_r58311465","pull_request_url":"https://api.github.com/repos/vinsol/nectarcommerce/pulls/47","_links":{"self":{"href":"https://api.github.com/repos/vinsol/nectarcommerce/pulls/comments/58311465"},"html":{"href":"https://github.com/vinsol/nectarcommerce/pull/47#discussion_r58311465"},"pull_request":{"href":"https://api.github.com/repos/vinsol/nectarcommerce/pulls/47"}}},"pull_request":{"url":"https://api.github.com/repos/vinsol/nectarcommerce/pulls/47","id":64792454,"html_url":"https://github.com/vinsol/nectarcommerce/pull/47","diff_url":"https://github.com/vinsol/nectarcommerce/pull/47.diff","patch_url":"https://github.com/vinsol/nectarcommerce/pull/47.patch","issue_url":"https://api.github.com/repos/vinsol/nectarcommerce/issues/47","number":47,"state":"open","locked":false,"title":"Demonstration of Extension Approach 2","user":{"login":"nimish-mehta","id":2488470,"avatar_url":"https://avatars.githubusercontent.com/u/2488470?v=3","gravatar_id":"","url":"https://api.github.com/users/nimish-mehta","html_url":"https://github.com/nimish-mehta","followers_url":"https://api.github.com/users/nimish-mehta/followers","following_url":"https://api.github.com/users/nimish-mehta/following{/other_user}","gists_url":"https://api.github.com/users/nimish-mehta/gists{/gist_id}","starred_url":"https://api.github.com/users/nimish-mehta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nimish-mehta/subscriptions","organizations_url":"https://api.github.com/users/nimish-mehta/orgs","repos_url":"https://api.github.com/users/nimish-mehta/repos","events_url":"https://api.github.com/users/nimish-mehta/events{/privacy}","received_events_url":"https://api.github.com/users/nimish-mehta/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-03-31T13:45:44Z","updated_at":"2016-04-03T14:50:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"59a036bd91b29cf66ca1156a92376467478030db","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/vinsol/nectarcommerce/pulls/47/commits","review_comments_url":"https://api.github.com/repos/vinsol/nectarcommerce/pulls/47/comments","review_comment_url":"https://api.github.com/repos/vinsol/nectarcommerce/pulls/comments{/number}","comments_url":"https://api.github.com/repos/vinsol/nectarcommerce/issues/47/comments","statuses_url":"https://api.github.com/repos/vinsol/nectarcommerce/statuses/0307acea114f2a8b2d8a0db1f2ad3625006696e7","head":{"label":"vinsol:extension/approach-2","ref":"extension/approach-2","sha":"0307acea114f2a8b2d8a0db1f2ad3625006696e7","user":{"login":"vinsol","id":72388,"avatar_url":"https://avatars.githubusercontent.com/u/72388?v=3","gravatar_id":"","url":"https://api.github.com/users/vinsol","html_url":"https://github.com/vinsol","followers_url":"https://api.github.com/users/vinsol/followers","following_url":"https://api.github.com/users/vinsol/following{/other_user}","gists_url":"https://api.github.com/users/vinsol/gists{/gist_id}","starred_url":"https://api.github.com/users/vinsol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vinsol/subscriptions","organizations_url":"https://api.github.com/users/vinsol/orgs","repos_url":"https://api.github.com/users/vinsol/repos","events_url":"https://api.github.com/users/vinsol/events{/privacy}","received_events_url":"https://api.github.com/users/vinsol/received_events","type":"Organization","site_admin":false},"repo":{"id":50830234,"name":"nectarcommerce","full_name":"vinsol/nectarcommerce","owner":{"login":"vinsol","id":72388,"avatar_url":"https://avatars.githubusercontent.com/u/72388?v=3","gravatar_id":"","url":"https://api.github.com/users/vinsol","html_url":"https://github.com/vinsol","followers_url":"https://api.github.com/users/vinsol/followers","following_url":"https://api.github.com/users/vinsol/following{/other_user}","gists_url":"https://api.github.com/users/vinsol/gists{/gist_id}","starred_url":"https://api.github.com/users/vinsol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vinsol/subscriptions","organizations_url":"https://api.github.com/users/vinsol/orgs","repos_url":"https://api.github.com/users/vinsol/repos","events_url":"https://api.github.com/users/vinsol/events{/privacy}","received_events_url":"https://api.github.com/users/vinsol/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/vinsol/nectarcommerce","description":"Quest for customizable E-commerce - the Elixir way","fork":false,"url":"https://api.github.com/repos/vinsol/nectarcommerce","forks_url":"https://api.github.com/repos/vinsol/nectarcommerce/forks","keys_url":"https://api.github.com/repos/vinsol/nectarcommerce/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vinsol/nectarcommerce/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vinsol/nectarcommerce/teams","hooks_url":"https://api.github.com/repos/vinsol/nectarcommerce/hooks","issue_events_url":"https://api.github.com/repos/vinsol/nectarcommerce/issues/events{/number}","events_url":"https://api.github.com/repos/vinsol/nectarcommerce/events","assignees_url":"https://api.github.com/repos/vinsol/nectarcommerce/assignees{/user}","branches_url":"https://api.github.com/repos/vinsol/nectarcommerce/branches{/branch}","tags_url":"https://api.github.com/repos/vinsol/nectarcommerce/tags","blobs_url":"https://api.github.com/repos/vinsol/nectarcommerce/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vinsol/nectarcommerce/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vinsol/nectarcommerce/git/refs{/sha}","trees_url":"https://api.github.com/repos/vinsol/nectarcommerce/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vinsol/nectarcommerce/statuses/{sha}","languages_url":"https://api.github.com/repos/vinsol/nectarcommerce/languages","stargazers_url":"https://api.github.com/repos/vinsol/nectarcommerce/stargazers","contributors_url":"https://api.github.com/repos/vinsol/nectarcommerce/contributors","subscribers_url":"https://api.github.com/repos/vinsol/nectarcommerce/subscribers","subscription_url":"https://api.github.com/repos/vinsol/nectarcommerce/subscription","commits_url":"https://api.github.com/repos/vinsol/nectarcommerce/commits{/sha}","git_commits_url":"https://api.github.com/repos/vinsol/nectarcommerce/git/commits{/sha}","comments_url":"https://api.github.com/repos/vinsol/nectarcommerce/comments{/number}","issue_comment_url":"https://api.github.com/repos/vinsol/nectarcommerce/issues/comments{/number}","contents_url":"https://api.github.com/repos/vinsol/nectarcommerce/contents/{+path}","compare_url":"https://api.github.com/repos/vinsol/nectarcommerce/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vinsol/nectarcommerce/merges","archive_url":"https://api.github.com/repos/vinsol/nectarcommerce/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vinsol/nectarcommerce/downloads","issues_url":"https://api.github.com/repos/vinsol/nectarcommerce/issues{/number}","pulls_url":"https://api.github.com/repos/vinsol/nectarcommerce/pulls{/number}","milestones_url":"https://api.github.com/repos/vinsol/nectarcommerce/milestones{/number}","notifications_url":"https://api.github.com/repos/vinsol/nectarcommerce/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vinsol/nectarcommerce/labels{/name}","releases_url":"https://api.github.com/repos/vinsol/nectarcommerce/releases{/id}","deployments_url":"https://api.github.com/repos/vinsol/nectarcommerce/deployments","created_at":"2016-02-01T09:51:47Z","updated_at":"2016-04-03T08:08:12Z","pushed_at":"2016-03-31T13:46:28Z","git_url":"git://github.com/vinsol/nectarcommerce.git","ssh_url":"git@github.com:vinsol/nectarcommerce.git","clone_url":"https://github.com/vinsol/nectarcommerce.git","svn_url":"https://github.com/vinsol/nectarcommerce","homepage":"","size":951,"stargazers_count":51,"watchers_count":51,"language":"Elixir","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":3,"forks":5,"open_issues":3,"watchers":51,"default_branch":"master"}},"base":{"label":"vinsol:master","ref":"master","sha":"aa204e2f83cc68d6683222613f6eb1dea984a88e","user":{"login":"vinsol","id":72388,"avatar_url":"https://avatars.githubusercontent.com/u/72388?v=3","gravatar_id":"","url":"https://api.github.com/users/vinsol","html_url":"https://github.com/vinsol","followers_url":"https://api.github.com/users/vinsol/followers","following_url":"https://api.github.com/users/vinsol/following{/other_user}","gists_url":"https://api.github.com/users/vinsol/gists{/gist_id}","starred_url":"https://api.github.com/users/vinsol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vinsol/subscriptions","organizations_url":"https://api.github.com/users/vinsol/orgs","repos_url":"https://api.github.com/users/vinsol/repos","events_url":"https://api.github.com/users/vinsol/events{/privacy}","received_events_url":"https://api.github.com/users/vinsol/received_events","type":"Organization","site_admin":false},"repo":{"id":50830234,"name":"nectarcommerce","full_name":"vinsol/nectarcommerce","owner":{"login":"vinsol","id":72388,"avatar_url":"https://avatars.githubusercontent.com/u/72388?v=3","gravatar_id":"","url":"https://api.github.com/users/vinsol","html_url":"https://github.com/vinsol","followers_url":"https://api.github.com/users/vinsol/followers","following_url":"https://api.github.com/users/vinsol/following{/other_user}","gists_url":"https://api.github.com/users/vinsol/gists{/gist_id}","starred_url":"https://api.github.com/users/vinsol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vinsol/subscriptions","organizations_url":"https://api.github.com/users/vinsol/orgs","repos_url":"https://api.github.com/users/vinsol/repos","events_url":"https://api.github.com/users/vinsol/events{/privacy}","received_events_url":"https://api.github.com/users/vinsol/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/vinsol/nectarcommerce","description":"Quest for customizable E-commerce - the Elixir way","fork":false,"url":"https://api.github.com/repos/vinsol/nectarcommerce","forks_url":"https://api.github.com/repos/vinsol/nectarcommerce/forks","keys_url":"https://api.github.com/repos/vinsol/nectarcommerce/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vinsol/nectarcommerce/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vinsol/nectarcommerce/teams","hooks_url":"https://api.github.com/repos/vinsol/nectarcommerce/hooks","issue_events_url":"https://api.github.com/repos/vinsol/nectarcommerce/issues/events{/number}","events_url":"https://api.github.com/repos/vinsol/nectarcommerce/events","assignees_url":"https://api.github.com/repos/vinsol/nectarcommerce/assignees{/user}","branches_url":"https://api.github.com/repos/vinsol/nectarcommerce/branches{/branch}","tags_url":"https://api.github.com/repos/vinsol/nectarcommerce/tags","blobs_url":"https://api.github.com/repos/vinsol/nectarcommerce/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vinsol/nectarcommerce/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vinsol/nectarcommerce/git/refs{/sha}","trees_url":"https://api.github.com/repos/vinsol/nectarcommerce/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vinsol/nectarcommerce/statuses/{sha}","languages_url":"https://api.github.com/repos/vinsol/nectarcommerce/languages","stargazers_url":"https://api.github.com/repos/vinsol/nectarcommerce/stargazers","contributors_url":"https://api.github.com/repos/vinsol/nectarcommerce/contributors","subscribers_url":"https://api.github.com/repos/vinsol/nectarcommerce/subscribers","subscription_url":"https://api.github.com/repos/vinsol/nectarcommerce/subscription","commits_url":"https://api.github.com/repos/vinsol/nectarcommerce/commits{/sha}","git_commits_url":"https://api.github.com/repos/vinsol/nectarcommerce/git/commits{/sha}","comments_url":"https://api.github.com/repos/vinsol/nectarcommerce/comments{/number}","issue_comment_url":"https://api.github.com/repos/vinsol/nectarcommerce/issues/comments{/number}","contents_url":"https://api.github.com/repos/vinsol/nectarcommerce/contents/{+path}","compare_url":"https://api.github.com/repos/vinsol/nectarcommerce/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vinsol/nectarcommerce/merges","archive_url":"https://api.github.com/repos/vinsol/nectarcommerce/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vinsol/nectarcommerce/downloads","issues_url":"https://api.github.com/repos/vinsol/nectarcommerce/issues{/number}","pulls_url":"https://api.github.com/repos/vinsol/nectarcommerce/pulls{/number}","milestones_url":"https://api.github.com/repos/vinsol/nectarcommerce/milestones{/number}","notifications_url":"https://api.github.com/repos/vinsol/nectarcommerce/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vinsol/nectarcommerce/labels{/name}","releases_url":"https://api.github.com/repos/vinsol/nectarcommerce/releases{/id}","deployments_url":"https://api.github.com/repos/vinsol/nectarcommerce/deployments","created_at":"2016-02-01T09:51:47Z","updated_at":"2016-04-03T08:08:12Z","pushed_at":"2016-03-31T13:46:28Z","git_url":"git://github.com/vinsol/nectarcommerce.git","ssh_url":"git@github.com:vinsol/nectarcommerce.git","clone_url":"https://github.com/vinsol/nectarcommerce.git","svn_url":"https://github.com/vinsol/nectarcommerce","homepage":"","size":951,"stargazers_count":51,"watchers_count":51,"language":"Elixir","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":3,"forks":5,"open_issues":3,"watchers":51,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/vinsol/nectarcommerce/pulls/47"},"html":{"href":"https://github.com/vinsol/nectarcommerce/pull/47"},"issue":{"href":"https://api.github.com/repos/vinsol/nectarcommerce/issues/47"},"comments":{"href":"https://api.github.com/repos/vinsol/nectarcommerce/issues/47/comments"},"review_comments":{"href":"https://api.github.com/repos/vinsol/nectarcommerce/pulls/47/comments"},"review_comment":{"href":"https://api.github.com/repos/vinsol/nectarcommerce/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/vinsol/nectarcommerce/pulls/47/commits"},"statuses":{"href":"https://api.github.com/repos/vinsol/nectarcommerce/statuses/0307acea114f2a8b2d8a0db1f2ad3625006696e7"}}}}