{"action":"created","comment":{"url":"https://api.github.com/repos/eonum/medlang/pulls/comments/70664291","id":70664291,"diff_hunk":"@@ -1,7 +1,41 @@\n class Word\n   include Mongoid::Document\n-  field :word_name, type: String\n+  include Mongoid::Attributes::Dynamic\n+\n+\n+  belongs_to :syntactical_category, class_name: \"Category\", inverse_of: :syntactical_words, :autosave => true\n+  has_and_belongs_to_many :semantical_categories, class_name: \"Category\", inverse_of: :semantical_words, :autosave => true\n+\n+  field :name, type: String\n   field :description, type: String\n-  field :syntactical_category, type: String\n-  field :semantical-categories, type: String\n+\n+\n+  # OPTIMIZE: if the word allready exist, it should ask the user if he wants to edit the existing word.\n+  validates :name, uniqueness: {message: \"Dieses Wort gibt es bereits.\" }","path":"app/models/word.rb","position":17,"original_position":17,"commit_id":"fb058f791055ab3c77c7bf8721df2746cb6c7e96","original_commit_id":"fb058f791055ab3c77c7bf8721df2746cb6c7e96","user":{"login":"tschimbr","id":10279270,"avatar_url":"https://avatars.githubusercontent.com/u/10279270?v=3","gravatar_id":"","url":"https://api.github.com/users/tschimbr","html_url":"https://github.com/tschimbr","followers_url":"https://api.github.com/users/tschimbr/followers","following_url":"https://api.github.com/users/tschimbr/following{/other_user}","gists_url":"https://api.github.com/users/tschimbr/gists{/gist_id}","starred_url":"https://api.github.com/users/tschimbr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tschimbr/subscriptions","organizations_url":"https://api.github.com/users/tschimbr/orgs","repos_url":"https://api.github.com/users/tschimbr/repos","events_url":"https://api.github.com/users/tschimbr/events{/privacy}","received_events_url":"https://api.github.com/users/tschimbr/received_events","type":"User","site_admin":false},"body":"Please internationalize. You save yourself some hassle if you do this from the start and never use localized text in the code.","created_at":"2016-07-13T16:54:55Z","updated_at":"2016-07-13T16:54:55Z","html_url":"https://github.com/eonum/medlang/pull/11#discussion_r70664291","pull_request_url":"https://api.github.com/repos/eonum/medlang/pulls/11","_links":{"self":{"href":"https://api.github.com/repos/eonum/medlang/pulls/comments/70664291"},"html":{"href":"https://github.com/eonum/medlang/pull/11#discussion_r70664291"},"pull_request":{"href":"https://api.github.com/repos/eonum/medlang/pulls/11"}}},"pull_request":{"url":"https://api.github.com/repos/eonum/medlang/pulls/11","id":70369281,"html_url":"https://github.com/eonum/medlang/pull/11","diff_url":"https://github.com/eonum/medlang/pull/11.diff","patch_url":"https://github.com/eonum/medlang/pull/11.patch","issue_url":"https://api.github.com/repos/eonum/medlang/issues/11","number":11,"state":"open","locked":false,"title":"code review #1","user":{"login":"tschimbr","id":10279270,"avatar_url":"https://avatars.githubusercontent.com/u/10279270?v=3","gravatar_id":"","url":"https://api.github.com/users/tschimbr","html_url":"https://github.com/tschimbr","followers_url":"https://api.github.com/users/tschimbr/followers","following_url":"https://api.github.com/users/tschimbr/following{/other_user}","gists_url":"https://api.github.com/users/tschimbr/gists{/gist_id}","starred_url":"https://api.github.com/users/tschimbr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tschimbr/subscriptions","organizations_url":"https://api.github.com/users/tschimbr/orgs","repos_url":"https://api.github.com/users/tschimbr/repos","events_url":"https://api.github.com/users/tschimbr/events{/privacy}","received_events_url":"https://api.github.com/users/tschimbr/received_events","type":"User","site_admin":false},"body":"This is a dummy PR in order to be able to comment on changes since the start of development and hence do a code review.","created_at":"2016-05-17T14:41:47Z","updated_at":"2016-07-13T16:54:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ef9bfdf075c8fa66d2260c8ec28680a8b148a659","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/eonum/medlang/pulls/11/commits","review_comments_url":"https://api.github.com/repos/eonum/medlang/pulls/11/comments","review_comment_url":"https://api.github.com/repos/eonum/medlang/pulls/comments{/number}","comments_url":"https://api.github.com/repos/eonum/medlang/issues/11/comments","statuses_url":"https://api.github.com/repos/eonum/medlang/statuses/fb058f791055ab3c77c7bf8721df2746cb6c7e96","head":{"label":"eonum:master","ref":"master","sha":"fb058f791055ab3c77c7bf8721df2746cb6c7e96","user":{"login":"eonum","id":3072497,"avatar_url":"https://avatars.githubusercontent.com/u/3072497?v=3","gravatar_id":"","url":"https://api.github.com/users/eonum","html_url":"https://github.com/eonum","followers_url":"https://api.github.com/users/eonum/followers","following_url":"https://api.github.com/users/eonum/following{/other_user}","gists_url":"https://api.github.com/users/eonum/gists{/gist_id}","starred_url":"https://api.github.com/users/eonum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eonum/subscriptions","organizations_url":"https://api.github.com/users/eonum/orgs","repos_url":"https://api.github.com/users/eonum/repos","events_url":"https://api.github.com/users/eonum/events{/privacy}","received_events_url":"https://api.github.com/users/eonum/received_events","type":"Organization","site_admin":false},"repo":{"id":54887758,"name":"medlang","full_name":"eonum/medlang","owner":{"login":"eonum","id":3072497,"avatar_url":"https://avatars.githubusercontent.com/u/3072497?v=3","gravatar_id":"","url":"https://api.github.com/users/eonum","html_url":"https://github.com/eonum","followers_url":"https://api.github.com/users/eonum/followers","following_url":"https://api.github.com/users/eonum/following{/other_user}","gists_url":"https://api.github.com/users/eonum/gists{/gist_id}","starred_url":"https://api.github.com/users/eonum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eonum/subscriptions","organizations_url":"https://api.github.com/users/eonum/orgs","repos_url":"https://api.github.com/users/eonum/repos","events_url":"https://api.github.com/users/eonum/events{/privacy}","received_events_url":"https://api.github.com/users/eonum/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/eonum/medlang","description":"Database and E-Learning platform for medical language in German and English","fork":false,"url":"https://api.github.com/repos/eonum/medlang","forks_url":"https://api.github.com/repos/eonum/medlang/forks","keys_url":"https://api.github.com/repos/eonum/medlang/keys{/key_id}","collaborators_url":"https://api.github.com/repos/eonum/medlang/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/eonum/medlang/teams","hooks_url":"https://api.github.com/repos/eonum/medlang/hooks","issue_events_url":"https://api.github.com/repos/eonum/medlang/issues/events{/number}","events_url":"https://api.github.com/repos/eonum/medlang/events","assignees_url":"https://api.github.com/repos/eonum/medlang/assignees{/user}","branches_url":"https://api.github.com/repos/eonum/medlang/branches{/branch}","tags_url":"https://api.github.com/repos/eonum/medlang/tags","blobs_url":"https://api.github.com/repos/eonum/medlang/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/eonum/medlang/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/eonum/medlang/git/refs{/sha}","trees_url":"https://api.github.com/repos/eonum/medlang/git/trees{/sha}","statuses_url":"https://api.github.com/repos/eonum/medlang/statuses/{sha}","languages_url":"https://api.github.com/repos/eonum/medlang/languages","stargazers_url":"https://api.github.com/repos/eonum/medlang/stargazers","contributors_url":"https://api.github.com/repos/eonum/medlang/contributors","subscribers_url":"https://api.github.com/repos/eonum/medlang/subscribers","subscription_url":"https://api.github.com/repos/eonum/medlang/subscription","commits_url":"https://api.github.com/repos/eonum/medlang/commits{/sha}","git_commits_url":"https://api.github.com/repos/eonum/medlang/git/commits{/sha}","comments_url":"https://api.github.com/repos/eonum/medlang/comments{/number}","issue_comment_url":"https://api.github.com/repos/eonum/medlang/issues/comments{/number}","contents_url":"https://api.github.com/repos/eonum/medlang/contents/{+path}","compare_url":"https://api.github.com/repos/eonum/medlang/compare/{base}...{head}","merges_url":"https://api.github.com/repos/eonum/medlang/merges","archive_url":"https://api.github.com/repos/eonum/medlang/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/eonum/medlang/downloads","issues_url":"https://api.github.com/repos/eonum/medlang/issues{/number}","pulls_url":"https://api.github.com/repos/eonum/medlang/pulls{/number}","milestones_url":"https://api.github.com/repos/eonum/medlang/milestones{/number}","notifications_url":"https://api.github.com/repos/eonum/medlang/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/eonum/medlang/labels{/name}","releases_url":"https://api.github.com/repos/eonum/medlang/releases{/id}","deployments_url":"https://api.github.com/repos/eonum/medlang/deployments","created_at":"2016-03-28T11:28:09Z","updated_at":"2016-03-29T15:00:37Z","pushed_at":"2016-07-13T10:11:49Z","git_url":"git://github.com/eonum/medlang.git","ssh_url":"git@github.com:eonum/medlang.git","clone_url":"https://github.com/eonum/medlang.git","svn_url":"https://github.com/eonum/medlang","homepage":null,"size":149,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"eonum:start-development","ref":"start-development","sha":"da7e774c2653db273e313555c2666b47ff48f7e4","user":{"login":"eonum","id":3072497,"avatar_url":"https://avatars.githubusercontent.com/u/3072497?v=3","gravatar_id":"","url":"https://api.github.com/users/eonum","html_url":"https://github.com/eonum","followers_url":"https://api.github.com/users/eonum/followers","following_url":"https://api.github.com/users/eonum/following{/other_user}","gists_url":"https://api.github.com/users/eonum/gists{/gist_id}","starred_url":"https://api.github.com/users/eonum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eonum/subscriptions","organizations_url":"https://api.github.com/users/eonum/orgs","repos_url":"https://api.github.com/users/eonum/repos","events_url":"https://api.github.com/users/eonum/events{/privacy}","received_events_url":"https://api.github.com/users/eonum/received_events","type":"Organization","site_admin":false},"repo":{"id":54887758,"name":"medlang","full_name":"eonum/medlang","owner":{"login":"eonum","id":3072497,"avatar_url":"https://avatars.githubusercontent.com/u/3072497?v=3","gravatar_id":"","url":"https://api.github.com/users/eonum","html_url":"https://github.com/eonum","followers_url":"https://api.github.com/users/eonum/followers","following_url":"https://api.github.com/users/eonum/following{/other_user}","gists_url":"https://api.github.com/users/eonum/gists{/gist_id}","starred_url":"https://api.github.com/users/eonum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eonum/subscriptions","organizations_url":"https://api.github.com/users/eonum/orgs","repos_url":"https://api.github.com/users/eonum/repos","events_url":"https://api.github.com/users/eonum/events{/privacy}","received_events_url":"https://api.github.com/users/eonum/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/eonum/medlang","description":"Database and E-Learning platform for medical language in German and English","fork":false,"url":"https://api.github.com/repos/eonum/medlang","forks_url":"https://api.github.com/repos/eonum/medlang/forks","keys_url":"https://api.github.com/repos/eonum/medlang/keys{/key_id}","collaborators_url":"https://api.github.com/repos/eonum/medlang/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/eonum/medlang/teams","hooks_url":"https://api.github.com/repos/eonum/medlang/hooks","issue_events_url":"https://api.github.com/repos/eonum/medlang/issues/events{/number}","events_url":"https://api.github.com/repos/eonum/medlang/events","assignees_url":"https://api.github.com/repos/eonum/medlang/assignees{/user}","branches_url":"https://api.github.com/repos/eonum/medlang/branches{/branch}","tags_url":"https://api.github.com/repos/eonum/medlang/tags","blobs_url":"https://api.github.com/repos/eonum/medlang/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/eonum/medlang/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/eonum/medlang/git/refs{/sha}","trees_url":"https://api.github.com/repos/eonum/medlang/git/trees{/sha}","statuses_url":"https://api.github.com/repos/eonum/medlang/statuses/{sha}","languages_url":"https://api.github.com/repos/eonum/medlang/languages","stargazers_url":"https://api.github.com/repos/eonum/medlang/stargazers","contributors_url":"https://api.github.com/repos/eonum/medlang/contributors","subscribers_url":"https://api.github.com/repos/eonum/medlang/subscribers","subscription_url":"https://api.github.com/repos/eonum/medlang/subscription","commits_url":"https://api.github.com/repos/eonum/medlang/commits{/sha}","git_commits_url":"https://api.github.com/repos/eonum/medlang/git/commits{/sha}","comments_url":"https://api.github.com/repos/eonum/medlang/comments{/number}","issue_comment_url":"https://api.github.com/repos/eonum/medlang/issues/comments{/number}","contents_url":"https://api.github.com/repos/eonum/medlang/contents/{+path}","compare_url":"https://api.github.com/repos/eonum/medlang/compare/{base}...{head}","merges_url":"https://api.github.com/repos/eonum/medlang/merges","archive_url":"https://api.github.com/repos/eonum/medlang/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/eonum/medlang/downloads","issues_url":"https://api.github.com/repos/eonum/medlang/issues{/number}","pulls_url":"https://api.github.com/repos/eonum/medlang/pulls{/number}","milestones_url":"https://api.github.com/repos/eonum/medlang/milestones{/number}","notifications_url":"https://api.github.com/repos/eonum/medlang/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/eonum/medlang/labels{/name}","releases_url":"https://api.github.com/repos/eonum/medlang/releases{/id}","deployments_url":"https://api.github.com/repos/eonum/medlang/deployments","created_at":"2016-03-28T11:28:09Z","updated_at":"2016-03-29T15:00:37Z","pushed_at":"2016-07-13T10:11:49Z","git_url":"git://github.com/eonum/medlang.git","ssh_url":"git@github.com:eonum/medlang.git","clone_url":"https://github.com/eonum/medlang.git","svn_url":"https://github.com/eonum/medlang","homepage":null,"size":149,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/eonum/medlang/pulls/11"},"html":{"href":"https://github.com/eonum/medlang/pull/11"},"issue":{"href":"https://api.github.com/repos/eonum/medlang/issues/11"},"comments":{"href":"https://api.github.com/repos/eonum/medlang/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/eonum/medlang/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/eonum/medlang/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/eonum/medlang/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/eonum/medlang/statuses/fb058f791055ab3c77c7bf8721df2746cb6c7e96"}}}}
{"actor":{"display_login":"tschimbr"}}