{"action":"created","comment":{"url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/pulls/comments/22908301","id":22908301,"diff_hunk":"@@ -0,0 +1,94 @@\n+inputs = %w[\n+  CollectionSelectInput\n+  DateTimeInput\n+  FileInput\n+  GroupedCollectionSelectInput\n+  NumericInput\n+  PasswordInput\n+  RangeInput\n+  StringInput\n+  TextInput\n+]\n+\n+inputs.each do |input_type|\n+  superclass = \"SimpleForm::Inputs::#{input_type}\".constantize\n+\n+  new_class = Class.new(superclass) do\n+    def input_html_classes\n+      super.push('form-control')\n+    end\n+  end\n+\n+  Object.const_set(input_type, new_class)\n+end\n+\n+# Use this setup block to configure all options available in SimpleForm.\n+SimpleForm.setup do |config|\n+  config.boolean_style = :nested\n+\n+  config.wrappers :bootstrap3, tag: 'div', class: 'form-group', error_class: 'has-error',\n+      defaults: { input_html: { class: 'default_class' } } do |b|\n+\n+    b.use :html5\n+    b.use :min_max\n+    b.use :maxlength\n+    b.use :placeholder\n+\n+    b.optional :pattern\n+    b.optional :readonly\n+\n+    b.use :label_input\n+    b.use :hint,  wrap_with: { tag: 'span', class: 'help-block' }\n+    b.use :error, wrap_with: { tag: 'span', class: 'help-block has-error' }\n+  end\n+\n+  config.wrappers :prepend, tag: 'div', class: 'form-group', error_class: 'has-error' do |b|\n+    b.use :html5\n+    b.use :placeholder\n+    b.wrapper tag: 'div', class: 'controls' do |input|\n+      input.wrapper tag: 'div', class: 'input-group' do |prepend|\n+        prepend.use :label , class: 'input-group-addon'\n+        #Please note setting class here from the label does not currently work\n+        #(let me know if you know a workaround as this is the final hurdle)","path":"vendor/engines/badges_engine/config/initializers/simple_form_bootstrap3.rb","position":52,"original_position":52,"commit_id":"7ca921d3a71d67cefd6de9942fb8e019b6b02a9b","original_commit_id":"7ca921d3a71d67cefd6de9942fb8e019b6b02a9b","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Missing space after #.","created_at":"2015-01-14T00:32:48Z","updated_at":"2015-01-14T00:32:48Z","html_url":"https://github.com/crowdint/kardex-crowdint-com/pull/107#discussion_r22908301","pull_request_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/pulls/107","_links":{"self":{"href":"https://api.github.com/repos/crowdint/kardex-crowdint-com/pulls/comments/22908301"},"html":{"href":"https://github.com/crowdint/kardex-crowdint-com/pull/107#discussion_r22908301"},"pull_request":{"href":"https://api.github.com/repos/crowdint/kardex-crowdint-com/pulls/107"}}},"pull_request":{"url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/pulls/107","id":26698069,"html_url":"https://github.com/crowdint/kardex-crowdint-com/pull/107","diff_url":"https://github.com/crowdint/kardex-crowdint-com/pull/107.diff","patch_url":"https://github.com/crowdint/kardex-crowdint-com/pull/107.patch","issue_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/issues/107","number":107,"state":"open","locked":false,"title":"Refactorization/engines","user":{"login":"rodacato","id":232752,"avatar_url":"https://avatars.githubusercontent.com/u/232752?v=3","gravatar_id":"","url":"https://api.github.com/users/rodacato","html_url":"https://github.com/rodacato","followers_url":"https://api.github.com/users/rodacato/followers","following_url":"https://api.github.com/users/rodacato/following{/other_user}","gists_url":"https://api.github.com/users/rodacato/gists{/gist_id}","starred_url":"https://api.github.com/users/rodacato/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rodacato/subscriptions","organizations_url":"https://api.github.com/users/rodacato/orgs","repos_url":"https://api.github.com/users/rodacato/repos","events_url":"https://api.github.com/users/rodacato/events{/privacy}","received_events_url":"https://api.github.com/users/rodacato/received_events","type":"User","site_admin":false},"body":"Refactorize logic for workshop engine.\r\n\r\nAlready reviewed by @vicmaster and @zalapeach","created_at":"2014-12-30T18:54:25Z","updated_at":"2015-01-14T00:32:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4583b9b4f3c1efb10a0f3c70a89d27edd0bfeee9","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/pulls/107/commits","review_comments_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/pulls/107/comments","review_comment_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/pulls/comments/{number}","comments_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/issues/107/comments","statuses_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/statuses/7ca921d3a71d67cefd6de9942fb8e019b6b02a9b","head":{"label":"crowdint:refactorization/engines","ref":"refactorization/engines","sha":"7ca921d3a71d67cefd6de9942fb8e019b6b02a9b","user":{"login":"crowdint","id":333603,"avatar_url":"https://avatars.githubusercontent.com/u/333603?v=3","gravatar_id":"","url":"https://api.github.com/users/crowdint","html_url":"https://github.com/crowdint","followers_url":"https://api.github.com/users/crowdint/followers","following_url":"https://api.github.com/users/crowdint/following{/other_user}","gists_url":"https://api.github.com/users/crowdint/gists{/gist_id}","starred_url":"https://api.github.com/users/crowdint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crowdint/subscriptions","organizations_url":"https://api.github.com/users/crowdint/orgs","repos_url":"https://api.github.com/users/crowdint/repos","events_url":"https://api.github.com/users/crowdint/events{/privacy}","received_events_url":"https://api.github.com/users/crowdint/received_events","type":"Organization","site_admin":false},"repo":{"id":19990761,"name":"kardex-crowdint-com","full_name":"crowdint/kardex-crowdint-com","owner":{"login":"crowdint","id":333603,"avatar_url":"https://avatars.githubusercontent.com/u/333603?v=3","gravatar_id":"","url":"https://api.github.com/users/crowdint","html_url":"https://github.com/crowdint","followers_url":"https://api.github.com/users/crowdint/followers","following_url":"https://api.github.com/users/crowdint/following{/other_user}","gists_url":"https://api.github.com/users/crowdint/gists{/gist_id}","starred_url":"https://api.github.com/users/crowdint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crowdint/subscriptions","organizations_url":"https://api.github.com/users/crowdint/orgs","repos_url":"https://api.github.com/users/crowdint/repos","events_url":"https://api.github.com/users/crowdint/events{/privacy}","received_events_url":"https://api.github.com/users/crowdint/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/crowdint/kardex-crowdint-com","description":"Organization members kardex score card","fork":false,"url":"https://api.github.com/repos/crowdint/kardex-crowdint-com","forks_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/forks","keys_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/keys{/key_id}","collaborators_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/teams","hooks_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/hooks","issue_events_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/issues/events{/number}","events_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/events","assignees_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/assignees{/user}","branches_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/branches{/branch}","tags_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/tags","blobs_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/git/refs{/sha}","trees_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/git/trees{/sha}","statuses_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/statuses/{sha}","languages_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/languages","stargazers_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/stargazers","contributors_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/contributors","subscribers_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/subscribers","subscription_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/subscription","commits_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/commits{/sha}","git_commits_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/git/commits{/sha}","comments_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/comments{/number}","issue_comment_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/issues/comments/{number}","contents_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/contents/{+path}","compare_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/compare/{base}...{head}","merges_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/merges","archive_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/downloads","issues_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/issues{/number}","pulls_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/pulls{/number}","milestones_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/milestones{/number}","notifications_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/labels{/name}","releases_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/releases{/id}","created_at":"2014-05-20T17:39:03Z","updated_at":"2014-11-28T22:52:24Z","pushed_at":"2015-01-14T00:32:32Z","git_url":"git://github.com/crowdint/kardex-crowdint-com.git","ssh_url":"git@github.com:crowdint/kardex-crowdint-com.git","clone_url":"https://github.com/crowdint/kardex-crowdint-com.git","svn_url":"https://github.com/crowdint/kardex-crowdint-com","homepage":"","size":2909,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"crowdint:master","ref":"master","sha":"1420367536b606d5d98113da5d602677e752c186","user":{"login":"crowdint","id":333603,"avatar_url":"https://avatars.githubusercontent.com/u/333603?v=3","gravatar_id":"","url":"https://api.github.com/users/crowdint","html_url":"https://github.com/crowdint","followers_url":"https://api.github.com/users/crowdint/followers","following_url":"https://api.github.com/users/crowdint/following{/other_user}","gists_url":"https://api.github.com/users/crowdint/gists{/gist_id}","starred_url":"https://api.github.com/users/crowdint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crowdint/subscriptions","organizations_url":"https://api.github.com/users/crowdint/orgs","repos_url":"https://api.github.com/users/crowdint/repos","events_url":"https://api.github.com/users/crowdint/events{/privacy}","received_events_url":"https://api.github.com/users/crowdint/received_events","type":"Organization","site_admin":false},"repo":{"id":19990761,"name":"kardex-crowdint-com","full_name":"crowdint/kardex-crowdint-com","owner":{"login":"crowdint","id":333603,"avatar_url":"https://avatars.githubusercontent.com/u/333603?v=3","gravatar_id":"","url":"https://api.github.com/users/crowdint","html_url":"https://github.com/crowdint","followers_url":"https://api.github.com/users/crowdint/followers","following_url":"https://api.github.com/users/crowdint/following{/other_user}","gists_url":"https://api.github.com/users/crowdint/gists{/gist_id}","starred_url":"https://api.github.com/users/crowdint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crowdint/subscriptions","organizations_url":"https://api.github.com/users/crowdint/orgs","repos_url":"https://api.github.com/users/crowdint/repos","events_url":"https://api.github.com/users/crowdint/events{/privacy}","received_events_url":"https://api.github.com/users/crowdint/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/crowdint/kardex-crowdint-com","description":"Organization members kardex score card","fork":false,"url":"https://api.github.com/repos/crowdint/kardex-crowdint-com","forks_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/forks","keys_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/keys{/key_id}","collaborators_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/teams","hooks_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/hooks","issue_events_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/issues/events{/number}","events_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/events","assignees_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/assignees{/user}","branches_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/branches{/branch}","tags_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/tags","blobs_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/git/refs{/sha}","trees_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/git/trees{/sha}","statuses_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/statuses/{sha}","languages_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/languages","stargazers_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/stargazers","contributors_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/contributors","subscribers_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/subscribers","subscription_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/subscription","commits_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/commits{/sha}","git_commits_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/git/commits{/sha}","comments_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/comments{/number}","issue_comment_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/issues/comments/{number}","contents_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/contents/{+path}","compare_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/compare/{base}...{head}","merges_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/merges","archive_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/downloads","issues_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/issues{/number}","pulls_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/pulls{/number}","milestones_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/milestones{/number}","notifications_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/labels{/name}","releases_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/releases{/id}","created_at":"2014-05-20T17:39:03Z","updated_at":"2014-11-28T22:52:24Z","pushed_at":"2015-01-14T00:32:32Z","git_url":"git://github.com/crowdint/kardex-crowdint-com.git","ssh_url":"git@github.com:crowdint/kardex-crowdint-com.git","clone_url":"https://github.com/crowdint/kardex-crowdint-com.git","svn_url":"https://github.com/crowdint/kardex-crowdint-com","homepage":"","size":2909,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/crowdint/kardex-crowdint-com/pulls/107"},"html":{"href":"https://github.com/crowdint/kardex-crowdint-com/pull/107"},"issue":{"href":"https://api.github.com/repos/crowdint/kardex-crowdint-com/issues/107"},"comments":{"href":"https://api.github.com/repos/crowdint/kardex-crowdint-com/issues/107/comments"},"review_comments":{"href":"https://api.github.com/repos/crowdint/kardex-crowdint-com/pulls/107/comments"},"review_comment":{"href":"https://api.github.com/repos/crowdint/kardex-crowdint-com/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/crowdint/kardex-crowdint-com/pulls/107/commits"},"statuses":{"href":"https://api.github.com/repos/crowdint/kardex-crowdint-com/statuses/7ca921d3a71d67cefd6de9942fb8e019b6b02a9b"}}}}