{"action":"closed","number":340,"pull_request":{"url":"https://api.github.com/repos/apotonick/reform/pulls/340","id":61364912,"html_url":"https://github.com/apotonick/reform/pull/340","diff_url":"https://github.com/apotonick/reform/pull/340.diff","patch_url":"https://github.com/apotonick/reform/pull/340.patch","issue_url":"https://api.github.com/repos/apotonick/reform/issues/340","number":340,"state":"closed","locked":false,"title":"Add :readonly option for property","user":{"login":"pabloh","id":134495,"avatar_url":"https://avatars.githubusercontent.com/u/134495?v=3","gravatar_id":"","url":"https://api.github.com/users/pabloh","html_url":"https://github.com/pabloh","followers_url":"https://api.github.com/users/pabloh/followers","following_url":"https://api.github.com/users/pabloh/following{/other_user}","gists_url":"https://api.github.com/users/pabloh/gists{/gist_id}","starred_url":"https://api.github.com/users/pabloh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pabloh/subscriptions","organizations_url":"https://api.github.com/users/pabloh/orgs","repos_url":"https://api.github.com/users/pabloh/repos","events_url":"https://api.github.com/users/pabloh/events{/privacy}","received_events_url":"https://api.github.com/users/pabloh/received_events","type":"User","site_admin":false},"body":"Allow defining *readonly* properties that cannot be updated at `Form#validate`:\r\n\r\n```ruby\r\nUser = Struct.new(:name, :admin)\r\n\r\nclass UserForm < Reform::Form\r\n  property :name\r\n  property :admin, readonly: true\r\nend\r\n\r\nuser = User.new(\"Peter\", false)\r\nform = UserForm.new(user)\r\n\r\nform.validate(\"name\" => \"Joseph\", \"admin\" => true)\r\n\r\nform.name # returns \"Joseph\"\r\nform.admin # returns false\r\n```","created_at":"2016-03-02T08:14:08Z","updated_at":"2016-07-05T21:29:58Z","closed_at":"2016-07-05T21:29:58Z","merged_at":null,"merge_commit_sha":"98907b9b8aedf4f71a2dbe574324f1fdeebd8ad0","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/apotonick/reform/pulls/340/commits","review_comments_url":"https://api.github.com/repos/apotonick/reform/pulls/340/comments","review_comment_url":"https://api.github.com/repos/apotonick/reform/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apotonick/reform/issues/340/comments","statuses_url":"https://api.github.com/repos/apotonick/reform/statuses/9378856550ada6efea9b2db5c035460908059f63","head":{"label":"pabloh:readonly","ref":"readonly","sha":"9378856550ada6efea9b2db5c035460908059f63","user":{"login":"pabloh","id":134495,"avatar_url":"https://avatars.githubusercontent.com/u/134495?v=3","gravatar_id":"","url":"https://api.github.com/users/pabloh","html_url":"https://github.com/pabloh","followers_url":"https://api.github.com/users/pabloh/followers","following_url":"https://api.github.com/users/pabloh/following{/other_user}","gists_url":"https://api.github.com/users/pabloh/gists{/gist_id}","starred_url":"https://api.github.com/users/pabloh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pabloh/subscriptions","organizations_url":"https://api.github.com/users/pabloh/orgs","repos_url":"https://api.github.com/users/pabloh/repos","events_url":"https://api.github.com/users/pabloh/events{/privacy}","received_events_url":"https://api.github.com/users/pabloh/received_events","type":"User","site_admin":false},"repo":{"id":48926704,"name":"reform","full_name":"pabloh/reform","owner":{"login":"pabloh","id":134495,"avatar_url":"https://avatars.githubusercontent.com/u/134495?v=3","gravatar_id":"","url":"https://api.github.com/users/pabloh","html_url":"https://github.com/pabloh","followers_url":"https://api.github.com/users/pabloh/followers","following_url":"https://api.github.com/users/pabloh/following{/other_user}","gists_url":"https://api.github.com/users/pabloh/gists{/gist_id}","starred_url":"https://api.github.com/users/pabloh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pabloh/subscriptions","organizations_url":"https://api.github.com/users/pabloh/orgs","repos_url":"https://api.github.com/users/pabloh/repos","events_url":"https://api.github.com/users/pabloh/events{/privacy}","received_events_url":"https://api.github.com/users/pabloh/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pabloh/reform","description":"Form objects decoupled from models.","fork":true,"url":"https://api.github.com/repos/pabloh/reform","forks_url":"https://api.github.com/repos/pabloh/reform/forks","keys_url":"https://api.github.com/repos/pabloh/reform/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pabloh/reform/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pabloh/reform/teams","hooks_url":"https://api.github.com/repos/pabloh/reform/hooks","issue_events_url":"https://api.github.com/repos/pabloh/reform/issues/events{/number}","events_url":"https://api.github.com/repos/pabloh/reform/events","assignees_url":"https://api.github.com/repos/pabloh/reform/assignees{/user}","branches_url":"https://api.github.com/repos/pabloh/reform/branches{/branch}","tags_url":"https://api.github.com/repos/pabloh/reform/tags","blobs_url":"https://api.github.com/repos/pabloh/reform/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pabloh/reform/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pabloh/reform/git/refs{/sha}","trees_url":"https://api.github.com/repos/pabloh/reform/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pabloh/reform/statuses/{sha}","languages_url":"https://api.github.com/repos/pabloh/reform/languages","stargazers_url":"https://api.github.com/repos/pabloh/reform/stargazers","contributors_url":"https://api.github.com/repos/pabloh/reform/contributors","subscribers_url":"https://api.github.com/repos/pabloh/reform/subscribers","subscription_url":"https://api.github.com/repos/pabloh/reform/subscription","commits_url":"https://api.github.com/repos/pabloh/reform/commits{/sha}","git_commits_url":"https://api.github.com/repos/pabloh/reform/git/commits{/sha}","comments_url":"https://api.github.com/repos/pabloh/reform/comments{/number}","issue_comment_url":"https://api.github.com/repos/pabloh/reform/issues/comments{/number}","contents_url":"https://api.github.com/repos/pabloh/reform/contents/{+path}","compare_url":"https://api.github.com/repos/pabloh/reform/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pabloh/reform/merges","archive_url":"https://api.github.com/repos/pabloh/reform/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pabloh/reform/downloads","issues_url":"https://api.github.com/repos/pabloh/reform/issues{/number}","pulls_url":"https://api.github.com/repos/pabloh/reform/pulls{/number}","milestones_url":"https://api.github.com/repos/pabloh/reform/milestones{/number}","notifications_url":"https://api.github.com/repos/pabloh/reform/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pabloh/reform/labels{/name}","releases_url":"https://api.github.com/repos/pabloh/reform/releases{/id}","deployments_url":"https://api.github.com/repos/pabloh/reform/deployments","created_at":"2016-01-02T22:56:39Z","updated_at":"2016-03-02T07:21:15Z","pushed_at":"2016-03-24T05:54:57Z","git_url":"git://github.com/pabloh/reform.git","ssh_url":"git@github.com:pabloh/reform.git","clone_url":"https://github.com/pabloh/reform.git","svn_url":"https://github.com/pabloh/reform","homepage":"http://www.trailblazer.to/gems/reform","size":1392,"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":"69723129b9edb02397f1f48ace714ae4391a7a21","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}","deployments_url":"https://api.github.com/repos/apotonick/reform/deployments","created_at":"2013-04-30T05:02:35Z","updated_at":"2016-07-05T20:37:10Z","pushed_at":"2016-07-05T12:19:21Z","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":"http://www.trailblazer.to/gems/reform","size":1501,"stargazers_count":1868,"watchers_count":1868,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":141,"mirror_url":null,"open_issues_count":58,"forks":141,"open_issues":58,"watchers":1868,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apotonick/reform/pulls/340"},"html":{"href":"https://github.com/apotonick/reform/pull/340"},"issue":{"href":"https://api.github.com/repos/apotonick/reform/issues/340"},"comments":{"href":"https://api.github.com/repos/apotonick/reform/issues/340/comments"},"review_comments":{"href":"https://api.github.com/repos/apotonick/reform/pulls/340/comments"},"review_comment":{"href":"https://api.github.com/repos/apotonick/reform/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apotonick/reform/pulls/340/commits"},"statuses":{"href":"https://api.github.com/repos/apotonick/reform/statuses/9378856550ada6efea9b2db5c035460908059f63"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":5,"review_comments":0,"commits":1,"additions":33,"deletions":2,"changed_files":4}}
{"actor":{"display_login":"apotonick"}}