{"action":"created","comment":{"url":"https://api.github.com/repos/jodeci/daikichi/pulls/comments/74720100","id":74720100,"diff_hunk":"@@ -1,2 +1,22 @@\n module LeaveApplicationsHelper\n+  def convert_time_format(time_object, key = :default)\n+    time_object.to_s(key)\n+  end\n+\n+  def new_input_hash(key, time_object = Time.zone.now)\n+    if key==:start","path":"app/helpers/leave_applications_helper.rb","position":7,"original_position":7,"commit_id":"c66b2e6ab5467e9f6ec962947828ab3324fd83ff","original_commit_id":"c66b2e6ab5467e9f6ec962947828ab3324fd83ff","user":{"login":"jodeci","id":5399330,"avatar_url":"https://avatars.githubusercontent.com/u/5399330?v=3","gravatar_id":"","url":"https://api.github.com/users/jodeci","html_url":"https://github.com/jodeci","followers_url":"https://api.github.com/users/jodeci/followers","following_url":"https://api.github.com/users/jodeci/following{/other_user}","gists_url":"https://api.github.com/users/jodeci/gists{/gist_id}","starred_url":"https://api.github.com/users/jodeci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jodeci/subscriptions","organizations_url":"https://api.github.com/users/jodeci/orgs","repos_url":"https://api.github.com/users/jodeci/repos","events_url":"https://api.github.com/users/jodeci/events{/privacy}","received_events_url":"https://api.github.com/users/jodeci/received_events","type":"User","site_admin":false},"body":"`if key == :start`\r\n\r\n注意 coding style 喔\r\n","created_at":"2016-08-15T04:41:41Z","updated_at":"2016-08-15T04:41:41Z","html_url":"https://github.com/jodeci/daikichi/pull/6#discussion_r74720100","pull_request_url":"https://api.github.com/repos/jodeci/daikichi/pulls/6","_links":{"self":{"href":"https://api.github.com/repos/jodeci/daikichi/pulls/comments/74720100"},"html":{"href":"https://github.com/jodeci/daikichi/pull/6#discussion_r74720100"},"pull_request":{"href":"https://api.github.com/repos/jodeci/daikichi/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/jodeci/daikichi/pulls/6","id":79506422,"html_url":"https://github.com/jodeci/daikichi/pull/6","diff_url":"https://github.com/jodeci/daikichi/pull/6.diff","patch_url":"https://github.com/jodeci/daikichi/pull/6.patch","issue_url":"https://api.github.com/repos/jodeci/daikichi/issues/6","number":6,"state":"open","locked":false,"title":"Features/leave application","user":{"login":"Ericlee0210","id":9026895,"avatar_url":"https://avatars.githubusercontent.com/u/9026895?v=3","gravatar_id":"","url":"https://api.github.com/users/Ericlee0210","html_url":"https://github.com/Ericlee0210","followers_url":"https://api.github.com/users/Ericlee0210/followers","following_url":"https://api.github.com/users/Ericlee0210/following{/other_user}","gists_url":"https://api.github.com/users/Ericlee0210/gists{/gist_id}","starred_url":"https://api.github.com/users/Ericlee0210/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ericlee0210/subscriptions","organizations_url":"https://api.github.com/users/Ericlee0210/orgs","repos_url":"https://api.github.com/users/Ericlee0210/repos","events_url":"https://api.github.com/users/Ericlee0210/events{/privacy}","received_events_url":"https://api.github.com/users/Ericlee0210/received_events","type":"User","site_admin":false},"body":"1. 新增 simple_form wrapper，使得 simple_form 可以套入 bootstrap3-datetimepicker 的 js 檔，美化原本的 datetimepicker\r\n2. 修正 base_controller 的 create action\r\n3. 修改 base_controller 的 url_after_create 執行順序\r\n4. 修改 cancan 權限，讓登入者只能對自己的假單 CRUD\r\n5. 在 navigation bar 新增請假系統的 menubar\r\n6. 增加新增假單時的驗證，一旦空白則會跳出相對應的提醒文字\r\n7. 將 LeaveApplicaiton model 的 hours 由 integer 改至 float","created_at":"2016-08-01T02:44:41Z","updated_at":"2016-08-15T04:41:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e04f27a13461f308eaa8ad397b19cb431a3d169f","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/jodeci/daikichi/pulls/6/commits","review_comments_url":"https://api.github.com/repos/jodeci/daikichi/pulls/6/comments","review_comment_url":"https://api.github.com/repos/jodeci/daikichi/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jodeci/daikichi/issues/6/comments","statuses_url":"https://api.github.com/repos/jodeci/daikichi/statuses/c66b2e6ab5467e9f6ec962947828ab3324fd83ff","head":{"label":"jodeci:features/leave_application","ref":"features/leave_application","sha":"c66b2e6ab5467e9f6ec962947828ab3324fd83ff","user":{"login":"jodeci","id":5399330,"avatar_url":"https://avatars.githubusercontent.com/u/5399330?v=3","gravatar_id":"","url":"https://api.github.com/users/jodeci","html_url":"https://github.com/jodeci","followers_url":"https://api.github.com/users/jodeci/followers","following_url":"https://api.github.com/users/jodeci/following{/other_user}","gists_url":"https://api.github.com/users/jodeci/gists{/gist_id}","starred_url":"https://api.github.com/users/jodeci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jodeci/subscriptions","organizations_url":"https://api.github.com/users/jodeci/orgs","repos_url":"https://api.github.com/users/jodeci/repos","events_url":"https://api.github.com/users/jodeci/events{/privacy}","received_events_url":"https://api.github.com/users/jodeci/received_events","type":"User","site_admin":false},"repo":{"id":63141282,"name":"daikichi","full_name":"jodeci/daikichi","owner":{"login":"jodeci","id":5399330,"avatar_url":"https://avatars.githubusercontent.com/u/5399330?v=3","gravatar_id":"","url":"https://api.github.com/users/jodeci","html_url":"https://github.com/jodeci","followers_url":"https://api.github.com/users/jodeci/followers","following_url":"https://api.github.com/users/jodeci/following{/other_user}","gists_url":"https://api.github.com/users/jodeci/gists{/gist_id}","starred_url":"https://api.github.com/users/jodeci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jodeci/subscriptions","organizations_url":"https://api.github.com/users/jodeci/orgs","repos_url":"https://api.github.com/users/jodeci/repos","events_url":"https://api.github.com/users/jodeci/events{/privacy}","received_events_url":"https://api.github.com/users/jodeci/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jodeci/daikichi","description":"HR system","fork":false,"url":"https://api.github.com/repos/jodeci/daikichi","forks_url":"https://api.github.com/repos/jodeci/daikichi/forks","keys_url":"https://api.github.com/repos/jodeci/daikichi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jodeci/daikichi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jodeci/daikichi/teams","hooks_url":"https://api.github.com/repos/jodeci/daikichi/hooks","issue_events_url":"https://api.github.com/repos/jodeci/daikichi/issues/events{/number}","events_url":"https://api.github.com/repos/jodeci/daikichi/events","assignees_url":"https://api.github.com/repos/jodeci/daikichi/assignees{/user}","branches_url":"https://api.github.com/repos/jodeci/daikichi/branches{/branch}","tags_url":"https://api.github.com/repos/jodeci/daikichi/tags","blobs_url":"https://api.github.com/repos/jodeci/daikichi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jodeci/daikichi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jodeci/daikichi/git/refs{/sha}","trees_url":"https://api.github.com/repos/jodeci/daikichi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jodeci/daikichi/statuses/{sha}","languages_url":"https://api.github.com/repos/jodeci/daikichi/languages","stargazers_url":"https://api.github.com/repos/jodeci/daikichi/stargazers","contributors_url":"https://api.github.com/repos/jodeci/daikichi/contributors","subscribers_url":"https://api.github.com/repos/jodeci/daikichi/subscribers","subscription_url":"https://api.github.com/repos/jodeci/daikichi/subscription","commits_url":"https://api.github.com/repos/jodeci/daikichi/commits{/sha}","git_commits_url":"https://api.github.com/repos/jodeci/daikichi/git/commits{/sha}","comments_url":"https://api.github.com/repos/jodeci/daikichi/comments{/number}","issue_comment_url":"https://api.github.com/repos/jodeci/daikichi/issues/comments{/number}","contents_url":"https://api.github.com/repos/jodeci/daikichi/contents/{+path}","compare_url":"https://api.github.com/repos/jodeci/daikichi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jodeci/daikichi/merges","archive_url":"https://api.github.com/repos/jodeci/daikichi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jodeci/daikichi/downloads","issues_url":"https://api.github.com/repos/jodeci/daikichi/issues{/number}","pulls_url":"https://api.github.com/repos/jodeci/daikichi/pulls{/number}","milestones_url":"https://api.github.com/repos/jodeci/daikichi/milestones{/number}","notifications_url":"https://api.github.com/repos/jodeci/daikichi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jodeci/daikichi/labels{/name}","releases_url":"https://api.github.com/repos/jodeci/daikichi/releases{/id}","deployments_url":"https://api.github.com/repos/jodeci/daikichi/deployments","created_at":"2016-07-12T08:38:38Z","updated_at":"2016-07-12T08:39:22Z","pushed_at":"2016-08-12T10:22:04Z","git_url":"git://github.com/jodeci/daikichi.git","ssh_url":"git@github.com:jodeci/daikichi.git","clone_url":"https://github.com/jodeci/daikichi.git","svn_url":"https://github.com/jodeci/daikichi","homepage":null,"size":135,"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":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"jodeci:development","ref":"development","sha":"620ee703f8460e72da16f4a2a35c3c26b5273418","user":{"login":"jodeci","id":5399330,"avatar_url":"https://avatars.githubusercontent.com/u/5399330?v=3","gravatar_id":"","url":"https://api.github.com/users/jodeci","html_url":"https://github.com/jodeci","followers_url":"https://api.github.com/users/jodeci/followers","following_url":"https://api.github.com/users/jodeci/following{/other_user}","gists_url":"https://api.github.com/users/jodeci/gists{/gist_id}","starred_url":"https://api.github.com/users/jodeci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jodeci/subscriptions","organizations_url":"https://api.github.com/users/jodeci/orgs","repos_url":"https://api.github.com/users/jodeci/repos","events_url":"https://api.github.com/users/jodeci/events{/privacy}","received_events_url":"https://api.github.com/users/jodeci/received_events","type":"User","site_admin":false},"repo":{"id":63141282,"name":"daikichi","full_name":"jodeci/daikichi","owner":{"login":"jodeci","id":5399330,"avatar_url":"https://avatars.githubusercontent.com/u/5399330?v=3","gravatar_id":"","url":"https://api.github.com/users/jodeci","html_url":"https://github.com/jodeci","followers_url":"https://api.github.com/users/jodeci/followers","following_url":"https://api.github.com/users/jodeci/following{/other_user}","gists_url":"https://api.github.com/users/jodeci/gists{/gist_id}","starred_url":"https://api.github.com/users/jodeci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jodeci/subscriptions","organizations_url":"https://api.github.com/users/jodeci/orgs","repos_url":"https://api.github.com/users/jodeci/repos","events_url":"https://api.github.com/users/jodeci/events{/privacy}","received_events_url":"https://api.github.com/users/jodeci/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jodeci/daikichi","description":"HR system","fork":false,"url":"https://api.github.com/repos/jodeci/daikichi","forks_url":"https://api.github.com/repos/jodeci/daikichi/forks","keys_url":"https://api.github.com/repos/jodeci/daikichi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jodeci/daikichi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jodeci/daikichi/teams","hooks_url":"https://api.github.com/repos/jodeci/daikichi/hooks","issue_events_url":"https://api.github.com/repos/jodeci/daikichi/issues/events{/number}","events_url":"https://api.github.com/repos/jodeci/daikichi/events","assignees_url":"https://api.github.com/repos/jodeci/daikichi/assignees{/user}","branches_url":"https://api.github.com/repos/jodeci/daikichi/branches{/branch}","tags_url":"https://api.github.com/repos/jodeci/daikichi/tags","blobs_url":"https://api.github.com/repos/jodeci/daikichi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jodeci/daikichi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jodeci/daikichi/git/refs{/sha}","trees_url":"https://api.github.com/repos/jodeci/daikichi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jodeci/daikichi/statuses/{sha}","languages_url":"https://api.github.com/repos/jodeci/daikichi/languages","stargazers_url":"https://api.github.com/repos/jodeci/daikichi/stargazers","contributors_url":"https://api.github.com/repos/jodeci/daikichi/contributors","subscribers_url":"https://api.github.com/repos/jodeci/daikichi/subscribers","subscription_url":"https://api.github.com/repos/jodeci/daikichi/subscription","commits_url":"https://api.github.com/repos/jodeci/daikichi/commits{/sha}","git_commits_url":"https://api.github.com/repos/jodeci/daikichi/git/commits{/sha}","comments_url":"https://api.github.com/repos/jodeci/daikichi/comments{/number}","issue_comment_url":"https://api.github.com/repos/jodeci/daikichi/issues/comments{/number}","contents_url":"https://api.github.com/repos/jodeci/daikichi/contents/{+path}","compare_url":"https://api.github.com/repos/jodeci/daikichi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jodeci/daikichi/merges","archive_url":"https://api.github.com/repos/jodeci/daikichi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jodeci/daikichi/downloads","issues_url":"https://api.github.com/repos/jodeci/daikichi/issues{/number}","pulls_url":"https://api.github.com/repos/jodeci/daikichi/pulls{/number}","milestones_url":"https://api.github.com/repos/jodeci/daikichi/milestones{/number}","notifications_url":"https://api.github.com/repos/jodeci/daikichi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jodeci/daikichi/labels{/name}","releases_url":"https://api.github.com/repos/jodeci/daikichi/releases{/id}","deployments_url":"https://api.github.com/repos/jodeci/daikichi/deployments","created_at":"2016-07-12T08:38:38Z","updated_at":"2016-07-12T08:39:22Z","pushed_at":"2016-08-12T10:22:04Z","git_url":"git://github.com/jodeci/daikichi.git","ssh_url":"git@github.com:jodeci/daikichi.git","clone_url":"https://github.com/jodeci/daikichi.git","svn_url":"https://github.com/jodeci/daikichi","homepage":null,"size":135,"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":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jodeci/daikichi/pulls/6"},"html":{"href":"https://github.com/jodeci/daikichi/pull/6"},"issue":{"href":"https://api.github.com/repos/jodeci/daikichi/issues/6"},"comments":{"href":"https://api.github.com/repos/jodeci/daikichi/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/jodeci/daikichi/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/jodeci/daikichi/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jodeci/daikichi/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/jodeci/daikichi/statuses/c66b2e6ab5467e9f6ec962947828ab3324fd83ff"}}}}
{"actor":{"display_login":"jodeci"}}