{"action":"created","comment":{"url":"https://api.github.com/repos/Bezbo/flashcards/pulls/comments/32197620","id":32197620,"diff_hunk":"@@ -0,0 +1,166 @@\n+# Use this setup block to configure all options available in SimpleForm.\n+SimpleForm.setup do |config|\n+  # Wrappers are used by the form builder to generate a\n+  # complete input. You can remove any component from the\n+  # wrapper, change the order or even add your own to the\n+  # stack. The options given below are used to wrap the\n+  # whole input.\n+  config.wrappers :default, class: :input,\n+    hint_class: :field_with_hint, error_class: :field_with_errors do |b|\n+    ## Extensions enabled by default\n+    # Any of these extensions can be disabled for a\n+    # given input by passing: `f.input EXTENSION_NAME => false`.\n+    # You can make any of these extensions optional by\n+    # renaming `b.use` to `b.optional`.\n+\n+    # Determines whether to use HTML5 (:email, :url, ...)\n+    # and required attributes\n+    b.use :html5\n+\n+    # Calculates placeholders automatically from I18n\n+    # You can also pass a string as f.input placeholder: \"Placeholder\"\n+    b.use :placeholder\n+\n+    ## Optional extensions\n+    # They are disabled unless you pass `f.input EXTENSION_NAME => true`\n+    # to the input. If so, they will retrieve the values from the model\n+    # if any exists. If you want to enable any of those\n+    # extensions by default, you can change `b.optional` to `b.use`.\n+\n+    # Calculates maxlength from length validations for string inputs\n+    b.optional :maxlength\n+\n+    # Calculates pattern from format validations for string inputs\n+    b.optional :pattern\n+\n+    # Calculates min and max from length validations for numeric inputs\n+    b.optional :min_max\n+\n+    # Calculates readonly automatically from readonly attributes\n+    b.optional :readonly\n+\n+    ## Inputs\n+    b.use :label_input\n+    b.use :hint,  wrap_with: { tag: :span, class: :hint }\n+    b.use :error, wrap_with: { tag: :span, class: :error }\n+\n+    ## full_messages_for\n+    # If you want to display the full error message for the attribute, you can\n+    # use the component :full_error, like:\n+    #\n+    # b.use :full_error, wrap_with: { tag: :span, class: :error }\n+  end\n+\n+  # The default wrapper to be used by the FormBuilder.\n+  config.default_wrapper = :default\n+\n+  # Define the way to render check boxes / radio buttons with labels.\n+  # Defaults to :nested for bootstrap config.\n+  #   inline: input + label\n+  #   nested: label > input\n+  config.boolean_style = :nested\n+\n+  # Default class for buttons\n+  config.button_class = 'btn'\n+\n+  # Method used to tidy up errors. Specify any Rails Array method.\n+  # :first lists the first message for each field.\n+  # Use :to_sentence to list all errors for each field.\n+  # config.error_method = :first\n+\n+  # Default tag used for error notification helper.\n+  config.error_notification_tag = :div\n+\n+  # CSS class to add for error notification helper.\n+  config.error_notification_class = 'error_notification'","path":"config/initializers/simple_form.rb","position":75,"original_position":75,"commit_id":"0d822d2aef28c90e0c00e045174eb94031e879e0","original_commit_id":"0d822d2aef28c90e0c00e045174eb94031e879e0","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":"Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.","created_at":"2015-06-11T08:02:31Z","updated_at":"2015-06-11T08:02:31Z","html_url":"https://github.com/Bezbo/flashcards/pull/3#discussion_r32197620","pull_request_url":"https://api.github.com/repos/Bezbo/flashcards/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/Bezbo/flashcards/pulls/comments/32197620"},"html":{"href":"https://github.com/Bezbo/flashcards/pull/3#discussion_r32197620"},"pull_request":{"href":"https://api.github.com/repos/Bezbo/flashcards/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/Bezbo/flashcards/pulls/3","id":37437977,"html_url":"https://github.com/Bezbo/flashcards/pull/3","diff_url":"https://github.com/Bezbo/flashcards/pull/3.diff","patch_url":"https://github.com/Bezbo/flashcards/pull/3.patch","issue_url":"https://api.github.com/repos/Bezbo/flashcards/issues/3","number":3,"state":"open","locked":false,"title":"CRUD and validations for cards","user":{"login":"Bezbo","id":4949123,"avatar_url":"https://avatars.githubusercontent.com/u/4949123?v=3","gravatar_id":"","url":"https://api.github.com/users/Bezbo","html_url":"https://github.com/Bezbo","followers_url":"https://api.github.com/users/Bezbo/followers","following_url":"https://api.github.com/users/Bezbo/following{/other_user}","gists_url":"https://api.github.com/users/Bezbo/gists{/gist_id}","starred_url":"https://api.github.com/users/Bezbo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bezbo/subscriptions","organizations_url":"https://api.github.com/users/Bezbo/orgs","repos_url":"https://api.github.com/users/Bezbo/repos","events_url":"https://api.github.com/users/Bezbo/events{/privacy}","received_events_url":"https://api.github.com/users/Bezbo/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-06-11T08:02:17Z","updated_at":"2015-06-11T08:02:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bc57141fe9ca40becf821c4b649f5a3676b04dc2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Bezbo/flashcards/pulls/3/commits","review_comments_url":"https://api.github.com/repos/Bezbo/flashcards/pulls/3/comments","review_comment_url":"https://api.github.com/repos/Bezbo/flashcards/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Bezbo/flashcards/issues/3/comments","statuses_url":"https://api.github.com/repos/Bezbo/flashcards/statuses/0d822d2aef28c90e0c00e045174eb94031e879e0","head":{"label":"Bezbo:third_task","ref":"third_task","sha":"0d822d2aef28c90e0c00e045174eb94031e879e0","user":{"login":"Bezbo","id":4949123,"avatar_url":"https://avatars.githubusercontent.com/u/4949123?v=3","gravatar_id":"","url":"https://api.github.com/users/Bezbo","html_url":"https://github.com/Bezbo","followers_url":"https://api.github.com/users/Bezbo/followers","following_url":"https://api.github.com/users/Bezbo/following{/other_user}","gists_url":"https://api.github.com/users/Bezbo/gists{/gist_id}","starred_url":"https://api.github.com/users/Bezbo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bezbo/subscriptions","organizations_url":"https://api.github.com/users/Bezbo/orgs","repos_url":"https://api.github.com/users/Bezbo/repos","events_url":"https://api.github.com/users/Bezbo/events{/privacy}","received_events_url":"https://api.github.com/users/Bezbo/received_events","type":"User","site_admin":false},"repo":{"id":37122927,"name":"flashcards","full_name":"Bezbo/flashcards","owner":{"login":"Bezbo","id":4949123,"avatar_url":"https://avatars.githubusercontent.com/u/4949123?v=3","gravatar_id":"","url":"https://api.github.com/users/Bezbo","html_url":"https://github.com/Bezbo","followers_url":"https://api.github.com/users/Bezbo/followers","following_url":"https://api.github.com/users/Bezbo/following{/other_user}","gists_url":"https://api.github.com/users/Bezbo/gists{/gist_id}","starred_url":"https://api.github.com/users/Bezbo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bezbo/subscriptions","organizations_url":"https://api.github.com/users/Bezbo/orgs","repos_url":"https://api.github.com/users/Bezbo/repos","events_url":"https://api.github.com/users/Bezbo/events{/privacy}","received_events_url":"https://api.github.com/users/Bezbo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Bezbo/flashcards","description":"","fork":false,"url":"https://api.github.com/repos/Bezbo/flashcards","forks_url":"https://api.github.com/repos/Bezbo/flashcards/forks","keys_url":"https://api.github.com/repos/Bezbo/flashcards/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Bezbo/flashcards/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Bezbo/flashcards/teams","hooks_url":"https://api.github.com/repos/Bezbo/flashcards/hooks","issue_events_url":"https://api.github.com/repos/Bezbo/flashcards/issues/events{/number}","events_url":"https://api.github.com/repos/Bezbo/flashcards/events","assignees_url":"https://api.github.com/repos/Bezbo/flashcards/assignees{/user}","branches_url":"https://api.github.com/repos/Bezbo/flashcards/branches{/branch}","tags_url":"https://api.github.com/repos/Bezbo/flashcards/tags","blobs_url":"https://api.github.com/repos/Bezbo/flashcards/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Bezbo/flashcards/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Bezbo/flashcards/git/refs{/sha}","trees_url":"https://api.github.com/repos/Bezbo/flashcards/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Bezbo/flashcards/statuses/{sha}","languages_url":"https://api.github.com/repos/Bezbo/flashcards/languages","stargazers_url":"https://api.github.com/repos/Bezbo/flashcards/stargazers","contributors_url":"https://api.github.com/repos/Bezbo/flashcards/contributors","subscribers_url":"https://api.github.com/repos/Bezbo/flashcards/subscribers","subscription_url":"https://api.github.com/repos/Bezbo/flashcards/subscription","commits_url":"https://api.github.com/repos/Bezbo/flashcards/commits{/sha}","git_commits_url":"https://api.github.com/repos/Bezbo/flashcards/git/commits{/sha}","comments_url":"https://api.github.com/repos/Bezbo/flashcards/comments{/number}","issue_comment_url":"https://api.github.com/repos/Bezbo/flashcards/issues/comments{/number}","contents_url":"https://api.github.com/repos/Bezbo/flashcards/contents/{+path}","compare_url":"https://api.github.com/repos/Bezbo/flashcards/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Bezbo/flashcards/merges","archive_url":"https://api.github.com/repos/Bezbo/flashcards/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Bezbo/flashcards/downloads","issues_url":"https://api.github.com/repos/Bezbo/flashcards/issues{/number}","pulls_url":"https://api.github.com/repos/Bezbo/flashcards/pulls{/number}","milestones_url":"https://api.github.com/repos/Bezbo/flashcards/milestones{/number}","notifications_url":"https://api.github.com/repos/Bezbo/flashcards/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Bezbo/flashcards/labels{/name}","releases_url":"https://api.github.com/repos/Bezbo/flashcards/releases{/id}","created_at":"2015-06-09T09:28:45Z","updated_at":"2015-06-09T22:44:53Z","pushed_at":"2015-06-11T08:02:18Z","git_url":"git://github.com/Bezbo/flashcards.git","ssh_url":"git@github.com:Bezbo/flashcards.git","clone_url":"https://github.com/Bezbo/flashcards.git","svn_url":"https://github.com/Bezbo/flashcards","homepage":null,"size":0,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"Bezbo:master","ref":"master","sha":"2aa76a6cb77f209154f0df3fb2c5566b8f63b39d","user":{"login":"Bezbo","id":4949123,"avatar_url":"https://avatars.githubusercontent.com/u/4949123?v=3","gravatar_id":"","url":"https://api.github.com/users/Bezbo","html_url":"https://github.com/Bezbo","followers_url":"https://api.github.com/users/Bezbo/followers","following_url":"https://api.github.com/users/Bezbo/following{/other_user}","gists_url":"https://api.github.com/users/Bezbo/gists{/gist_id}","starred_url":"https://api.github.com/users/Bezbo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bezbo/subscriptions","organizations_url":"https://api.github.com/users/Bezbo/orgs","repos_url":"https://api.github.com/users/Bezbo/repos","events_url":"https://api.github.com/users/Bezbo/events{/privacy}","received_events_url":"https://api.github.com/users/Bezbo/received_events","type":"User","site_admin":false},"repo":{"id":37122927,"name":"flashcards","full_name":"Bezbo/flashcards","owner":{"login":"Bezbo","id":4949123,"avatar_url":"https://avatars.githubusercontent.com/u/4949123?v=3","gravatar_id":"","url":"https://api.github.com/users/Bezbo","html_url":"https://github.com/Bezbo","followers_url":"https://api.github.com/users/Bezbo/followers","following_url":"https://api.github.com/users/Bezbo/following{/other_user}","gists_url":"https://api.github.com/users/Bezbo/gists{/gist_id}","starred_url":"https://api.github.com/users/Bezbo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bezbo/subscriptions","organizations_url":"https://api.github.com/users/Bezbo/orgs","repos_url":"https://api.github.com/users/Bezbo/repos","events_url":"https://api.github.com/users/Bezbo/events{/privacy}","received_events_url":"https://api.github.com/users/Bezbo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Bezbo/flashcards","description":"","fork":false,"url":"https://api.github.com/repos/Bezbo/flashcards","forks_url":"https://api.github.com/repos/Bezbo/flashcards/forks","keys_url":"https://api.github.com/repos/Bezbo/flashcards/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Bezbo/flashcards/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Bezbo/flashcards/teams","hooks_url":"https://api.github.com/repos/Bezbo/flashcards/hooks","issue_events_url":"https://api.github.com/repos/Bezbo/flashcards/issues/events{/number}","events_url":"https://api.github.com/repos/Bezbo/flashcards/events","assignees_url":"https://api.github.com/repos/Bezbo/flashcards/assignees{/user}","branches_url":"https://api.github.com/repos/Bezbo/flashcards/branches{/branch}","tags_url":"https://api.github.com/repos/Bezbo/flashcards/tags","blobs_url":"https://api.github.com/repos/Bezbo/flashcards/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Bezbo/flashcards/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Bezbo/flashcards/git/refs{/sha}","trees_url":"https://api.github.com/repos/Bezbo/flashcards/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Bezbo/flashcards/statuses/{sha}","languages_url":"https://api.github.com/repos/Bezbo/flashcards/languages","stargazers_url":"https://api.github.com/repos/Bezbo/flashcards/stargazers","contributors_url":"https://api.github.com/repos/Bezbo/flashcards/contributors","subscribers_url":"https://api.github.com/repos/Bezbo/flashcards/subscribers","subscription_url":"https://api.github.com/repos/Bezbo/flashcards/subscription","commits_url":"https://api.github.com/repos/Bezbo/flashcards/commits{/sha}","git_commits_url":"https://api.github.com/repos/Bezbo/flashcards/git/commits{/sha}","comments_url":"https://api.github.com/repos/Bezbo/flashcards/comments{/number}","issue_comment_url":"https://api.github.com/repos/Bezbo/flashcards/issues/comments{/number}","contents_url":"https://api.github.com/repos/Bezbo/flashcards/contents/{+path}","compare_url":"https://api.github.com/repos/Bezbo/flashcards/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Bezbo/flashcards/merges","archive_url":"https://api.github.com/repos/Bezbo/flashcards/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Bezbo/flashcards/downloads","issues_url":"https://api.github.com/repos/Bezbo/flashcards/issues{/number}","pulls_url":"https://api.github.com/repos/Bezbo/flashcards/pulls{/number}","milestones_url":"https://api.github.com/repos/Bezbo/flashcards/milestones{/number}","notifications_url":"https://api.github.com/repos/Bezbo/flashcards/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Bezbo/flashcards/labels{/name}","releases_url":"https://api.github.com/repos/Bezbo/flashcards/releases{/id}","created_at":"2015-06-09T09:28:45Z","updated_at":"2015-06-09T22:44:53Z","pushed_at":"2015-06-11T08:02:18Z","git_url":"git://github.com/Bezbo/flashcards.git","ssh_url":"git@github.com:Bezbo/flashcards.git","clone_url":"https://github.com/Bezbo/flashcards.git","svn_url":"https://github.com/Bezbo/flashcards","homepage":null,"size":0,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Bezbo/flashcards/pulls/3"},"html":{"href":"https://github.com/Bezbo/flashcards/pull/3"},"issue":{"href":"https://api.github.com/repos/Bezbo/flashcards/issues/3"},"comments":{"href":"https://api.github.com/repos/Bezbo/flashcards/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/Bezbo/flashcards/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/Bezbo/flashcards/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Bezbo/flashcards/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/Bezbo/flashcards/statuses/0d822d2aef28c90e0c00e045174eb94031e879e0"}}}}