{"action":"closed","number":193,"pull_request":{"url":"https://api.github.com/repos/apotonick/reform/pulls/193","id":27910209,"html_url":"https://github.com/apotonick/reform/pull/193","diff_url":"https://github.com/apotonick/reform/pull/193.diff","patch_url":"https://github.com/apotonick/reform/pull/193.patch","issue_url":"https://api.github.com/repos/apotonick/reform/issues/193","number":193,"state":"closed","locked":false,"title":"Memoize `#model_name` in `Reform::Form::ActiveModel`","user":{"login":"gdott9","id":1830024,"avatar_url":"https://avatars.githubusercontent.com/u/1830024?v=3","gravatar_id":"","url":"https://api.github.com/users/gdott9","html_url":"https://github.com/gdott9","followers_url":"https://api.github.com/users/gdott9/followers","following_url":"https://api.github.com/users/gdott9/following{/other_user}","gists_url":"https://api.github.com/users/gdott9/gists{/gist_id}","starred_url":"https://api.github.com/users/gdott9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gdott9/subscriptions","organizations_url":"https://api.github.com/users/gdott9/orgs","repos_url":"https://api.github.com/users/gdott9/repos","events_url":"https://api.github.com/users/gdott9/events{/privacy}","received_events_url":"https://api.github.com/users/gdott9/received_events","type":"User","site_admin":false},"body":"This PR stores the form model name in an instance variable to only create one `ActiveModel::Name` object.","created_at":"2015-01-23T09:19:38Z","updated_at":"2015-01-26T08:30:30Z","closed_at":"2015-01-26T08:30:30Z","merged_at":null,"merge_commit_sha":"3f41ba1c471b3790eebcdfa7a4d40bc722eb7bf7","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/apotonick/reform/pulls/193/commits","review_comments_url":"https://api.github.com/repos/apotonick/reform/pulls/193/comments","review_comment_url":"https://api.github.com/repos/apotonick/reform/pulls/comments/{number}","comments_url":"https://api.github.com/repos/apotonick/reform/issues/193/comments","statuses_url":"https://api.github.com/repos/apotonick/reform/statuses/cd19f1189a51c3d1f583e520acc6f8d7e90999e6","head":{"label":"gdott9:model_name","ref":"model_name","sha":"cd19f1189a51c3d1f583e520acc6f8d7e90999e6","user":{"login":"gdott9","id":1830024,"avatar_url":"https://avatars.githubusercontent.com/u/1830024?v=3","gravatar_id":"","url":"https://api.github.com/users/gdott9","html_url":"https://github.com/gdott9","followers_url":"https://api.github.com/users/gdott9/followers","following_url":"https://api.github.com/users/gdott9/following{/other_user}","gists_url":"https://api.github.com/users/gdott9/gists{/gist_id}","starred_url":"https://api.github.com/users/gdott9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gdott9/subscriptions","organizations_url":"https://api.github.com/users/gdott9/orgs","repos_url":"https://api.github.com/users/gdott9/repos","events_url":"https://api.github.com/users/gdott9/events{/privacy}","received_events_url":"https://api.github.com/users/gdott9/received_events","type":"User","site_admin":false},"repo":{"id":27117011,"name":"reform","full_name":"gdott9/reform","owner":{"login":"gdott9","id":1830024,"avatar_url":"https://avatars.githubusercontent.com/u/1830024?v=3","gravatar_id":"","url":"https://api.github.com/users/gdott9","html_url":"https://github.com/gdott9","followers_url":"https://api.github.com/users/gdott9/followers","following_url":"https://api.github.com/users/gdott9/following{/other_user}","gists_url":"https://api.github.com/users/gdott9/gists{/gist_id}","starred_url":"https://api.github.com/users/gdott9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gdott9/subscriptions","organizations_url":"https://api.github.com/users/gdott9/orgs","repos_url":"https://api.github.com/users/gdott9/repos","events_url":"https://api.github.com/users/gdott9/events{/privacy}","received_events_url":"https://api.github.com/users/gdott9/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gdott9/reform","description":"Form objects decoupled from models.","fork":true,"url":"https://api.github.com/repos/gdott9/reform","forks_url":"https://api.github.com/repos/gdott9/reform/forks","keys_url":"https://api.github.com/repos/gdott9/reform/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gdott9/reform/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gdott9/reform/teams","hooks_url":"https://api.github.com/repos/gdott9/reform/hooks","issue_events_url":"https://api.github.com/repos/gdott9/reform/issues/events{/number}","events_url":"https://api.github.com/repos/gdott9/reform/events","assignees_url":"https://api.github.com/repos/gdott9/reform/assignees{/user}","branches_url":"https://api.github.com/repos/gdott9/reform/branches{/branch}","tags_url":"https://api.github.com/repos/gdott9/reform/tags","blobs_url":"https://api.github.com/repos/gdott9/reform/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gdott9/reform/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gdott9/reform/git/refs{/sha}","trees_url":"https://api.github.com/repos/gdott9/reform/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gdott9/reform/statuses/{sha}","languages_url":"https://api.github.com/repos/gdott9/reform/languages","stargazers_url":"https://api.github.com/repos/gdott9/reform/stargazers","contributors_url":"https://api.github.com/repos/gdott9/reform/contributors","subscribers_url":"https://api.github.com/repos/gdott9/reform/subscribers","subscription_url":"https://api.github.com/repos/gdott9/reform/subscription","commits_url":"https://api.github.com/repos/gdott9/reform/commits{/sha}","git_commits_url":"https://api.github.com/repos/gdott9/reform/git/commits{/sha}","comments_url":"https://api.github.com/repos/gdott9/reform/comments{/number}","issue_comment_url":"https://api.github.com/repos/gdott9/reform/issues/comments/{number}","contents_url":"https://api.github.com/repos/gdott9/reform/contents/{+path}","compare_url":"https://api.github.com/repos/gdott9/reform/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gdott9/reform/merges","archive_url":"https://api.github.com/repos/gdott9/reform/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gdott9/reform/downloads","issues_url":"https://api.github.com/repos/gdott9/reform/issues{/number}","pulls_url":"https://api.github.com/repos/gdott9/reform/pulls{/number}","milestones_url":"https://api.github.com/repos/gdott9/reform/milestones{/number}","notifications_url":"https://api.github.com/repos/gdott9/reform/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gdott9/reform/labels{/name}","releases_url":"https://api.github.com/repos/gdott9/reform/releases{/id}","created_at":"2014-11-25T08:54:04Z","updated_at":"2014-11-25T08:54:05Z","pushed_at":"2015-01-23T09:51:03Z","git_url":"git://github.com/gdott9/reform.git","ssh_url":"git@github.com:gdott9/reform.git","clone_url":"https://github.com/gdott9/reform.git","svn_url":"https://github.com/gdott9/reform","homepage":"","size":867,"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":"apotonick:master","ref":"master","sha":"140e18f52d2b25ca873ae387b47b96e7bed6c723","user":{"login":"apotonick","id":10406,"avatar_url":"https://avatars.githubusercontent.com/u/10406?v=3","gravatar_id":"","url":"https://api.github.com/users/apotonick","html_url":"https://github.com/apotonick","followers_url":"https://api.github.com/users/apotonick/followers","following_url":"https://api.github.com/users/apotonick/following{/other_user}","gists_url":"https://api.github.com/users/apotonick/gists{/gist_id}","starred_url":"https://api.github.com/users/apotonick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apotonick/subscriptions","organizations_url":"https://api.github.com/users/apotonick/orgs","repos_url":"https://api.github.com/users/apotonick/repos","events_url":"https://api.github.com/users/apotonick/events{/privacy}","received_events_url":"https://api.github.com/users/apotonick/received_events","type":"User","site_admin":false},"repo":{"id":9764362,"name":"reform","full_name":"apotonick/reform","owner":{"login":"apotonick","id":10406,"avatar_url":"https://avatars.githubusercontent.com/u/10406?v=3","gravatar_id":"","url":"https://api.github.com/users/apotonick","html_url":"https://github.com/apotonick","followers_url":"https://api.github.com/users/apotonick/followers","following_url":"https://api.github.com/users/apotonick/following{/other_user}","gists_url":"https://api.github.com/users/apotonick/gists{/gist_id}","starred_url":"https://api.github.com/users/apotonick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apotonick/subscriptions","organizations_url":"https://api.github.com/users/apotonick/orgs","repos_url":"https://api.github.com/users/apotonick/repos","events_url":"https://api.github.com/users/apotonick/events{/privacy}","received_events_url":"https://api.github.com/users/apotonick/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/apotonick/reform","description":"Form objects decoupled from models.","fork":false,"url":"https://api.github.com/repos/apotonick/reform","forks_url":"https://api.github.com/repos/apotonick/reform/forks","keys_url":"https://api.github.com/repos/apotonick/reform/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apotonick/reform/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apotonick/reform/teams","hooks_url":"https://api.github.com/repos/apotonick/reform/hooks","issue_events_url":"https://api.github.com/repos/apotonick/reform/issues/events{/number}","events_url":"https://api.github.com/repos/apotonick/reform/events","assignees_url":"https://api.github.com/repos/apotonick/reform/assignees{/user}","branches_url":"https://api.github.com/repos/apotonick/reform/branches{/branch}","tags_url":"https://api.github.com/repos/apotonick/reform/tags","blobs_url":"https://api.github.com/repos/apotonick/reform/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apotonick/reform/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apotonick/reform/git/refs{/sha}","trees_url":"https://api.github.com/repos/apotonick/reform/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apotonick/reform/statuses/{sha}","languages_url":"https://api.github.com/repos/apotonick/reform/languages","stargazers_url":"https://api.github.com/repos/apotonick/reform/stargazers","contributors_url":"https://api.github.com/repos/apotonick/reform/contributors","subscribers_url":"https://api.github.com/repos/apotonick/reform/subscribers","subscription_url":"https://api.github.com/repos/apotonick/reform/subscription","commits_url":"https://api.github.com/repos/apotonick/reform/commits{/sha}","git_commits_url":"https://api.github.com/repos/apotonick/reform/git/commits{/sha}","comments_url":"https://api.github.com/repos/apotonick/reform/comments{/number}","issue_comment_url":"https://api.github.com/repos/apotonick/reform/issues/comments/{number}","contents_url":"https://api.github.com/repos/apotonick/reform/contents/{+path}","compare_url":"https://api.github.com/repos/apotonick/reform/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apotonick/reform/merges","archive_url":"https://api.github.com/repos/apotonick/reform/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apotonick/reform/downloads","issues_url":"https://api.github.com/repos/apotonick/reform/issues{/number}","pulls_url":"https://api.github.com/repos/apotonick/reform/pulls{/number}","milestones_url":"https://api.github.com/repos/apotonick/reform/milestones{/number}","notifications_url":"https://api.github.com/repos/apotonick/reform/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apotonick/reform/labels{/name}","releases_url":"https://api.github.com/repos/apotonick/reform/releases{/id}","created_at":"2013-04-30T05:02:35Z","updated_at":"2015-01-25T23:53:15Z","pushed_at":"2015-01-25T10:53:59Z","git_url":"git://github.com/apotonick/reform.git","ssh_url":"git@github.com:apotonick/reform.git","clone_url":"https://github.com/apotonick/reform.git","svn_url":"https://github.com/apotonick/reform","homepage":"","size":2762,"stargazers_count":1357,"watchers_count":1357,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":81,"mirror_url":null,"open_issues_count":27,"forks":81,"open_issues":27,"watchers":1357,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apotonick/reform/pulls/193"},"html":{"href":"https://github.com/apotonick/reform/pull/193"},"issue":{"href":"https://api.github.com/repos/apotonick/reform/issues/193"},"comments":{"href":"https://api.github.com/repos/apotonick/reform/issues/193/comments"},"review_comments":{"href":"https://api.github.com/repos/apotonick/reform/pulls/193/comments"},"review_comment":{"href":"https://api.github.com/repos/apotonick/reform/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/apotonick/reform/pulls/193/commits"},"statuses":{"href":"https://api.github.com/repos/apotonick/reform/statuses/cd19f1189a51c3d1f583e520acc6f8d7e90999e6"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":2,"review_comments":0,"commits":1,"additions":8,"deletions":6,"changed_files":1}}