{"action":"closed","number":1,"pull_request":{"url":"https://api.github.com/repos/SimonKaluza/jsonapi-resources/pulls/1","id":51861998,"html_url":"https://github.com/SimonKaluza/jsonapi-resources/pull/1","diff_url":"https://github.com/SimonKaluza/jsonapi-resources/pull/1.diff","patch_url":"https://github.com/SimonKaluza/jsonapi-resources/pull/1.patch","issue_url":"https://api.github.com/repos/SimonKaluza/jsonapi-resources/issues/1","number":1,"state":"closed","locked":false,"title":"Disable utilization of resource_types cache when cache_classes is false","user":{"login":"SimonKaluza","id":648386,"avatar_url":"https://avatars.githubusercontent.com/u/648386?v=3","gravatar_id":"","url":"https://api.github.com/users/SimonKaluza","html_url":"https://github.com/SimonKaluza","followers_url":"https://api.github.com/users/SimonKaluza/followers","following_url":"https://api.github.com/users/SimonKaluza/following{/other_user}","gists_url":"https://api.github.com/users/SimonKaluza/gists{/gist_id}","starred_url":"https://api.github.com/users/SimonKaluza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SimonKaluza/subscriptions","organizations_url":"https://api.github.com/users/SimonKaluza/orgs","repos_url":"https://api.github.com/users/SimonKaluza/repos","events_url":"https://api.github.com/users/SimonKaluza/events{/privacy}","received_events_url":"https://api.github.com/users/SimonKaluza/received_events","type":"User","site_admin":false},"body":"Though this forces recreation of resources on each call to resource_for, this fixes Rails autoloading to actually reload Resource code while in development (previously `@@resource_types` held on to the stale version of the class from before the autoload).\r\n\r\nA more efficient solution would only reinstantiate the resources after the Rails `set_clear_dependencies_hook` clears `ActiveSupport::Dependencies`, but would likely require more complex callback/finalizer code.","created_at":"2015-11-26T00:51:10Z","updated_at":"2015-11-30T18:55:36Z","closed_at":"2015-11-30T18:55:36Z","merged_at":"2015-11-30T18:55:36Z","merge_commit_sha":"74c94c8217346e05e1318b66ed30ca461ea229df","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/SimonKaluza/jsonapi-resources/pulls/1/commits","review_comments_url":"https://api.github.com/repos/SimonKaluza/jsonapi-resources/pulls/1/comments","review_comment_url":"https://api.github.com/repos/SimonKaluza/jsonapi-resources/pulls/comments{/number}","comments_url":"https://api.github.com/repos/SimonKaluza/jsonapi-resources/issues/1/comments","statuses_url":"https://api.github.com/repos/SimonKaluza/jsonapi-resources/statuses/974185b7a724ee5db91f07e98b7e5c90d24f41ac","head":{"label":"SimonKaluza:fix-rails-autoloading-for-resources","ref":"fix-rails-autoloading-for-resources","sha":"974185b7a724ee5db91f07e98b7e5c90d24f41ac","user":{"login":"SimonKaluza","id":648386,"avatar_url":"https://avatars.githubusercontent.com/u/648386?v=3","gravatar_id":"","url":"https://api.github.com/users/SimonKaluza","html_url":"https://github.com/SimonKaluza","followers_url":"https://api.github.com/users/SimonKaluza/followers","following_url":"https://api.github.com/users/SimonKaluza/following{/other_user}","gists_url":"https://api.github.com/users/SimonKaluza/gists{/gist_id}","starred_url":"https://api.github.com/users/SimonKaluza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SimonKaluza/subscriptions","organizations_url":"https://api.github.com/users/SimonKaluza/orgs","repos_url":"https://api.github.com/users/SimonKaluza/repos","events_url":"https://api.github.com/users/SimonKaluza/events{/privacy}","received_events_url":"https://api.github.com/users/SimonKaluza/received_events","type":"User","site_admin":false},"repo":{"id":46895539,"name":"jsonapi-resources","full_name":"SimonKaluza/jsonapi-resources","owner":{"login":"SimonKaluza","id":648386,"avatar_url":"https://avatars.githubusercontent.com/u/648386?v=3","gravatar_id":"","url":"https://api.github.com/users/SimonKaluza","html_url":"https://github.com/SimonKaluza","followers_url":"https://api.github.com/users/SimonKaluza/followers","following_url":"https://api.github.com/users/SimonKaluza/following{/other_user}","gists_url":"https://api.github.com/users/SimonKaluza/gists{/gist_id}","starred_url":"https://api.github.com/users/SimonKaluza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SimonKaluza/subscriptions","organizations_url":"https://api.github.com/users/SimonKaluza/orgs","repos_url":"https://api.github.com/users/SimonKaluza/repos","events_url":"https://api.github.com/users/SimonKaluza/events{/privacy}","received_events_url":"https://api.github.com/users/SimonKaluza/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/SimonKaluza/jsonapi-resources","description":"","fork":true,"url":"https://api.github.com/repos/SimonKaluza/jsonapi-resources","forks_url":"https://api.github.com/repos/SimonKaluza/jsonapi-resources/forks","keys_url":"https://api.github.com/repos/SimonKaluza/jsonapi-resources/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SimonKaluza/jsonapi-resources/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SimonKaluza/jsonapi-resources/teams","hooks_url":"https://api.github.com/repos/SimonKaluza/jsonapi-resources/hooks","issue_events_url":"https://api.github.com/repos/SimonKaluza/jsonapi-resources/issues/events{/number}","events_url":"https://api.github.com/repos/SimonKaluza/jsonapi-resources/events","assignees_url":"https://api.github.com/repos/SimonKaluza/jsonapi-resources/assignees{/user}","branches_url":"https://api.github.com/repos/SimonKaluza/jsonapi-resources/branches{/branch}","tags_url":"https://api.github.com/repos/SimonKaluza/jsonapi-resources/tags","blobs_url":"https://api.github.com/repos/SimonKaluza/jsonapi-resources/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SimonKaluza/jsonapi-resources/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SimonKaluza/jsonapi-resources/git/refs{/sha}","trees_url":"https://api.github.com/repos/SimonKaluza/jsonapi-resources/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SimonKaluza/jsonapi-resources/statuses/{sha}","languages_url":"https://api.github.com/repos/SimonKaluza/jsonapi-resources/languages","stargazers_url":"https://api.github.com/repos/SimonKaluza/jsonapi-resources/stargazers","contributors_url":"https://api.github.com/repos/SimonKaluza/jsonapi-resources/contributors","subscribers_url":"https://api.github.com/repos/SimonKaluza/jsonapi-resources/subscribers","subscription_url":"https://api.github.com/repos/SimonKaluza/jsonapi-resources/subscription","commits_url":"https://api.github.com/repos/SimonKaluza/jsonapi-resources/commits{/sha}","git_commits_url":"https://api.github.com/repos/SimonKaluza/jsonapi-resources/git/commits{/sha}","comments_url":"https://api.github.com/repos/SimonKaluza/jsonapi-resources/comments{/number}","issue_comment_url":"https://api.github.com/repos/SimonKaluza/jsonapi-resources/issues/comments{/number}","contents_url":"https://api.github.com/repos/SimonKaluza/jsonapi-resources/contents/{+path}","compare_url":"https://api.github.com/repos/SimonKaluza/jsonapi-resources/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SimonKaluza/jsonapi-resources/merges","archive_url":"https://api.github.com/repos/SimonKaluza/jsonapi-resources/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SimonKaluza/jsonapi-resources/downloads","issues_url":"https://api.github.com/repos/SimonKaluza/jsonapi-resources/issues{/number}","pulls_url":"https://api.github.com/repos/SimonKaluza/jsonapi-resources/pulls{/number}","milestones_url":"https://api.github.com/repos/SimonKaluza/jsonapi-resources/milestones{/number}","notifications_url":"https://api.github.com/repos/SimonKaluza/jsonapi-resources/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SimonKaluza/jsonapi-resources/labels{/name}","releases_url":"https://api.github.com/repos/SimonKaluza/jsonapi-resources/releases{/id}","created_at":"2015-11-26T00:41:42Z","updated_at":"2015-11-26T00:41:43Z","pushed_at":"2015-11-30T18:55:36Z","git_url":"git://github.com/SimonKaluza/jsonapi-resources.git","ssh_url":"git@github.com:SimonKaluza/jsonapi-resources.git","clone_url":"https://github.com/SimonKaluza/jsonapi-resources.git","svn_url":"https://github.com/SimonKaluza/jsonapi-resources","homepage":null,"size":1647,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"SimonKaluza:master","ref":"master","sha":"b164c37a113e6dc3d422ee3e852cfe8458ccbdfa","user":{"login":"SimonKaluza","id":648386,"avatar_url":"https://avatars.githubusercontent.com/u/648386?v=3","gravatar_id":"","url":"https://api.github.com/users/SimonKaluza","html_url":"https://github.com/SimonKaluza","followers_url":"https://api.github.com/users/SimonKaluza/followers","following_url":"https://api.github.com/users/SimonKaluza/following{/other_user}","gists_url":"https://api.github.com/users/SimonKaluza/gists{/gist_id}","starred_url":"https://api.github.com/users/SimonKaluza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SimonKaluza/subscriptions","organizations_url":"https://api.github.com/users/SimonKaluza/orgs","repos_url":"https://api.github.com/users/SimonKaluza/repos","events_url":"https://api.github.com/users/SimonKaluza/events{/privacy}","received_events_url":"https://api.github.com/users/SimonKaluza/received_events","type":"User","site_admin":false},"repo":{"id":46895539,"name":"jsonapi-resources","full_name":"SimonKaluza/jsonapi-resources","owner":{"login":"SimonKaluza","id":648386,"avatar_url":"https://avatars.githubusercontent.com/u/648386?v=3","gravatar_id":"","url":"https://api.github.com/users/SimonKaluza","html_url":"https://github.com/SimonKaluza","followers_url":"https://api.github.com/users/SimonKaluza/followers","following_url":"https://api.github.com/users/SimonKaluza/following{/other_user}","gists_url":"https://api.github.com/users/SimonKaluza/gists{/gist_id}","starred_url":"https://api.github.com/users/SimonKaluza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SimonKaluza/subscriptions","organizations_url":"https://api.github.com/users/SimonKaluza/orgs","repos_url":"https://api.github.com/users/SimonKaluza/repos","events_url":"https://api.github.com/users/SimonKaluza/events{/privacy}","received_events_url":"https://api.github.com/users/SimonKaluza/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/SimonKaluza/jsonapi-resources","description":"","fork":true,"url":"https://api.github.com/repos/SimonKaluza/jsonapi-resources","forks_url":"https://api.github.com/repos/SimonKaluza/jsonapi-resources/forks","keys_url":"https://api.github.com/repos/SimonKaluza/jsonapi-resources/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SimonKaluza/jsonapi-resources/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SimonKaluza/jsonapi-resources/teams","hooks_url":"https://api.github.com/repos/SimonKaluza/jsonapi-resources/hooks","issue_events_url":"https://api.github.com/repos/SimonKaluza/jsonapi-resources/issues/events{/number}","events_url":"https://api.github.com/repos/SimonKaluza/jsonapi-resources/events","assignees_url":"https://api.github.com/repos/SimonKaluza/jsonapi-resources/assignees{/user}","branches_url":"https://api.github.com/repos/SimonKaluza/jsonapi-resources/branches{/branch}","tags_url":"https://api.github.com/repos/SimonKaluza/jsonapi-resources/tags","blobs_url":"https://api.github.com/repos/SimonKaluza/jsonapi-resources/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SimonKaluza/jsonapi-resources/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SimonKaluza/jsonapi-resources/git/refs{/sha}","trees_url":"https://api.github.com/repos/SimonKaluza/jsonapi-resources/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SimonKaluza/jsonapi-resources/statuses/{sha}","languages_url":"https://api.github.com/repos/SimonKaluza/jsonapi-resources/languages","stargazers_url":"https://api.github.com/repos/SimonKaluza/jsonapi-resources/stargazers","contributors_url":"https://api.github.com/repos/SimonKaluza/jsonapi-resources/contributors","subscribers_url":"https://api.github.com/repos/SimonKaluza/jsonapi-resources/subscribers","subscription_url":"https://api.github.com/repos/SimonKaluza/jsonapi-resources/subscription","commits_url":"https://api.github.com/repos/SimonKaluza/jsonapi-resources/commits{/sha}","git_commits_url":"https://api.github.com/repos/SimonKaluza/jsonapi-resources/git/commits{/sha}","comments_url":"https://api.github.com/repos/SimonKaluza/jsonapi-resources/comments{/number}","issue_comment_url":"https://api.github.com/repos/SimonKaluza/jsonapi-resources/issues/comments{/number}","contents_url":"https://api.github.com/repos/SimonKaluza/jsonapi-resources/contents/{+path}","compare_url":"https://api.github.com/repos/SimonKaluza/jsonapi-resources/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SimonKaluza/jsonapi-resources/merges","archive_url":"https://api.github.com/repos/SimonKaluza/jsonapi-resources/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SimonKaluza/jsonapi-resources/downloads","issues_url":"https://api.github.com/repos/SimonKaluza/jsonapi-resources/issues{/number}","pulls_url":"https://api.github.com/repos/SimonKaluza/jsonapi-resources/pulls{/number}","milestones_url":"https://api.github.com/repos/SimonKaluza/jsonapi-resources/milestones{/number}","notifications_url":"https://api.github.com/repos/SimonKaluza/jsonapi-resources/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SimonKaluza/jsonapi-resources/labels{/name}","releases_url":"https://api.github.com/repos/SimonKaluza/jsonapi-resources/releases{/id}","created_at":"2015-11-26T00:41:42Z","updated_at":"2015-11-26T00:41:43Z","pushed_at":"2015-11-30T18:55:36Z","git_url":"git://github.com/SimonKaluza/jsonapi-resources.git","ssh_url":"git@github.com:SimonKaluza/jsonapi-resources.git","clone_url":"https://github.com/SimonKaluza/jsonapi-resources.git","svn_url":"https://github.com/SimonKaluza/jsonapi-resources","homepage":null,"size":1647,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/SimonKaluza/jsonapi-resources/pulls/1"},"html":{"href":"https://github.com/SimonKaluza/jsonapi-resources/pull/1"},"issue":{"href":"https://api.github.com/repos/SimonKaluza/jsonapi-resources/issues/1"},"comments":{"href":"https://api.github.com/repos/SimonKaluza/jsonapi-resources/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/SimonKaluza/jsonapi-resources/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/SimonKaluza/jsonapi-resources/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/SimonKaluza/jsonapi-resources/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/SimonKaluza/jsonapi-resources/statuses/974185b7a724ee5db91f07e98b7e5c90d24f41ac"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"SimonKaluza","id":648386,"avatar_url":"https://avatars.githubusercontent.com/u/648386?v=3","gravatar_id":"","url":"https://api.github.com/users/SimonKaluza","html_url":"https://github.com/SimonKaluza","followers_url":"https://api.github.com/users/SimonKaluza/followers","following_url":"https://api.github.com/users/SimonKaluza/following{/other_user}","gists_url":"https://api.github.com/users/SimonKaluza/gists{/gist_id}","starred_url":"https://api.github.com/users/SimonKaluza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SimonKaluza/subscriptions","organizations_url":"https://api.github.com/users/SimonKaluza/orgs","repos_url":"https://api.github.com/users/SimonKaluza/repos","events_url":"https://api.github.com/users/SimonKaluza/events{/privacy}","received_events_url":"https://api.github.com/users/SimonKaluza/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":1,"additions":1,"deletions":1,"changed_files":1}}