{"action":"created","comment":{"url":"https://api.github.com/repos/spree/spree/pulls/comments/24973349","id":24973349,"diff_hunk":"@@ -3,9 +3,9 @@ module Api\n     class OptionTypesController < Spree::Api::BaseController\n       def index\n         if params[:ids]\n-          @option_types = Spree::OptionType.accessible_by(current_ability, :read).where(:id => params[:ids].split(','))\n+          @option_types = Spree::OptionType.includes(:option_values).accessible_by(current_ability, :read).where(id: params[:ids].split(','))","path":"api/app/controllers/spree/api/option_types_controller.rb","position":5,"original_position":5,"commit_id":"e207a9fe5bac949ad50e22e36f596a59a9038c30","original_commit_id":"e207a9fe5bac949ad50e22e36f596a59a9038c30","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":"Line is too long. [141/80]<br>Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.","created_at":"2015-02-19T09:06:45Z","updated_at":"2015-02-19T09:06:45Z","html_url":"https://github.com/spree/spree/pull/6068#discussion_r24973349","pull_request_url":"https://api.github.com/repos/spree/spree/pulls/6068","_links":{"self":{"href":"https://api.github.com/repos/spree/spree/pulls/comments/24973349"},"html":{"href":"https://github.com/spree/spree/pull/6068#discussion_r24973349"},"pull_request":{"href":"https://api.github.com/repos/spree/spree/pulls/6068"}}},"pull_request":{"url":"https://api.github.com/repos/spree/spree/pulls/6068","id":29595415,"html_url":"https://github.com/spree/spree/pull/6068","diff_url":"https://github.com/spree/spree/pull/6068.diff","patch_url":"https://github.com/spree/spree/pull/6068.patch","issue_url":"https://api.github.com/repos/spree/spree/issues/6068","number":6068,"state":"open","locked":false,"title":"Fix invalid scope in admin edit order template","user":{"login":"apeacox","id":142753,"avatar_url":"https://avatars.githubusercontent.com/u/142753?v=3","gravatar_id":"","url":"https://api.github.com/users/apeacox","html_url":"https://github.com/apeacox","followers_url":"https://api.github.com/users/apeacox/followers","following_url":"https://api.github.com/users/apeacox/following{/other_user}","gists_url":"https://api.github.com/users/apeacox/gists{/gist_id}","starred_url":"https://api.github.com/users/apeacox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apeacox/subscriptions","organizations_url":"https://api.github.com/users/apeacox/orgs","repos_url":"https://api.github.com/users/apeacox/repos","events_url":"https://api.github.com/users/apeacox/events{/privacy}","received_events_url":"https://api.github.com/users/apeacox/received_events","type":"User","site_admin":false},"body":"When order hasn't any valid payment, it renders a partial passing nil value for latest_payment variable.\r\n\r\nNote: already proposed and merged on `2-4-stable` branch.","created_at":"2015-02-19T09:05:51Z","updated_at":"2015-02-19T09:06:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/spree/spree/pulls/6068/commits","review_comments_url":"https://api.github.com/repos/spree/spree/pulls/6068/comments","review_comment_url":"https://api.github.com/repos/spree/spree/pulls/comments/{number}","comments_url":"https://api.github.com/repos/spree/spree/issues/6068/comments","statuses_url":"https://api.github.com/repos/spree/spree/statuses/e207a9fe5bac949ad50e22e36f596a59a9038c30","head":{"label":"apeacox:patch-1","ref":"patch-1","sha":"e207a9fe5bac949ad50e22e36f596a59a9038c30","user":{"login":"apeacox","id":142753,"avatar_url":"https://avatars.githubusercontent.com/u/142753?v=3","gravatar_id":"","url":"https://api.github.com/users/apeacox","html_url":"https://github.com/apeacox","followers_url":"https://api.github.com/users/apeacox/followers","following_url":"https://api.github.com/users/apeacox/following{/other_user}","gists_url":"https://api.github.com/users/apeacox/gists{/gist_id}","starred_url":"https://api.github.com/users/apeacox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apeacox/subscriptions","organizations_url":"https://api.github.com/users/apeacox/orgs","repos_url":"https://api.github.com/users/apeacox/repos","events_url":"https://api.github.com/users/apeacox/events{/privacy}","received_events_url":"https://api.github.com/users/apeacox/received_events","type":"User","site_admin":false},"repo":{"id":30970896,"name":"spree","full_name":"apeacox/spree","owner":{"login":"apeacox","id":142753,"avatar_url":"https://avatars.githubusercontent.com/u/142753?v=3","gravatar_id":"","url":"https://api.github.com/users/apeacox","html_url":"https://github.com/apeacox","followers_url":"https://api.github.com/users/apeacox/followers","following_url":"https://api.github.com/users/apeacox/following{/other_user}","gists_url":"https://api.github.com/users/apeacox/gists{/gist_id}","starred_url":"https://api.github.com/users/apeacox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apeacox/subscriptions","organizations_url":"https://api.github.com/users/apeacox/orgs","repos_url":"https://api.github.com/users/apeacox/repos","events_url":"https://api.github.com/users/apeacox/events{/privacy}","received_events_url":"https://api.github.com/users/apeacox/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/apeacox/spree","description":"Spree is a complete open source e-commerce solution for Ruby on Rails.","fork":true,"url":"https://api.github.com/repos/apeacox/spree","forks_url":"https://api.github.com/repos/apeacox/spree/forks","keys_url":"https://api.github.com/repos/apeacox/spree/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apeacox/spree/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apeacox/spree/teams","hooks_url":"https://api.github.com/repos/apeacox/spree/hooks","issue_events_url":"https://api.github.com/repos/apeacox/spree/issues/events{/number}","events_url":"https://api.github.com/repos/apeacox/spree/events","assignees_url":"https://api.github.com/repos/apeacox/spree/assignees{/user}","branches_url":"https://api.github.com/repos/apeacox/spree/branches{/branch}","tags_url":"https://api.github.com/repos/apeacox/spree/tags","blobs_url":"https://api.github.com/repos/apeacox/spree/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apeacox/spree/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apeacox/spree/git/refs{/sha}","trees_url":"https://api.github.com/repos/apeacox/spree/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apeacox/spree/statuses/{sha}","languages_url":"https://api.github.com/repos/apeacox/spree/languages","stargazers_url":"https://api.github.com/repos/apeacox/spree/stargazers","contributors_url":"https://api.github.com/repos/apeacox/spree/contributors","subscribers_url":"https://api.github.com/repos/apeacox/spree/subscribers","subscription_url":"https://api.github.com/repos/apeacox/spree/subscription","commits_url":"https://api.github.com/repos/apeacox/spree/commits{/sha}","git_commits_url":"https://api.github.com/repos/apeacox/spree/git/commits{/sha}","comments_url":"https://api.github.com/repos/apeacox/spree/comments{/number}","issue_comment_url":"https://api.github.com/repos/apeacox/spree/issues/comments/{number}","contents_url":"https://api.github.com/repos/apeacox/spree/contents/{+path}","compare_url":"https://api.github.com/repos/apeacox/spree/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apeacox/spree/merges","archive_url":"https://api.github.com/repos/apeacox/spree/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apeacox/spree/downloads","issues_url":"https://api.github.com/repos/apeacox/spree/issues{/number}","pulls_url":"https://api.github.com/repos/apeacox/spree/pulls{/number}","milestones_url":"https://api.github.com/repos/apeacox/spree/milestones{/number}","notifications_url":"https://api.github.com/repos/apeacox/spree/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apeacox/spree/labels{/name}","releases_url":"https://api.github.com/repos/apeacox/spree/releases{/id}","created_at":"2015-02-18T15:17:49Z","updated_at":"2015-02-18T15:17:56Z","pushed_at":"2015-02-18T15:22:07Z","git_url":"git://github.com/apeacox/spree.git","ssh_url":"git@github.com:apeacox/spree.git","clone_url":"https://github.com/apeacox/spree.git","svn_url":"https://github.com/apeacox/spree","homepage":"http://spreecommerce.com","size":72617,"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":"spree:master","ref":"master","sha":"eb5f19356f109d17e6abf4039ff296f5e7040690","user":{"login":"spree","id":56702,"avatar_url":"https://avatars.githubusercontent.com/u/56702?v=3","gravatar_id":"","url":"https://api.github.com/users/spree","html_url":"https://github.com/spree","followers_url":"https://api.github.com/users/spree/followers","following_url":"https://api.github.com/users/spree/following{/other_user}","gists_url":"https://api.github.com/users/spree/gists{/gist_id}","starred_url":"https://api.github.com/users/spree/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spree/subscriptions","organizations_url":"https://api.github.com/users/spree/orgs","repos_url":"https://api.github.com/users/spree/repos","events_url":"https://api.github.com/users/spree/events{/privacy}","received_events_url":"https://api.github.com/users/spree/received_events","type":"Organization","site_admin":false},"repo":{"id":3314,"name":"spree","full_name":"spree/spree","owner":{"login":"spree","id":56702,"avatar_url":"https://avatars.githubusercontent.com/u/56702?v=3","gravatar_id":"","url":"https://api.github.com/users/spree","html_url":"https://github.com/spree","followers_url":"https://api.github.com/users/spree/followers","following_url":"https://api.github.com/users/spree/following{/other_user}","gists_url":"https://api.github.com/users/spree/gists{/gist_id}","starred_url":"https://api.github.com/users/spree/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spree/subscriptions","organizations_url":"https://api.github.com/users/spree/orgs","repos_url":"https://api.github.com/users/spree/repos","events_url":"https://api.github.com/users/spree/events{/privacy}","received_events_url":"https://api.github.com/users/spree/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/spree/spree","description":"Spree is a complete open source e-commerce solution for Ruby on Rails.","fork":false,"url":"https://api.github.com/repos/spree/spree","forks_url":"https://api.github.com/repos/spree/spree/forks","keys_url":"https://api.github.com/repos/spree/spree/keys{/key_id}","collaborators_url":"https://api.github.com/repos/spree/spree/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/spree/spree/teams","hooks_url":"https://api.github.com/repos/spree/spree/hooks","issue_events_url":"https://api.github.com/repos/spree/spree/issues/events{/number}","events_url":"https://api.github.com/repos/spree/spree/events","assignees_url":"https://api.github.com/repos/spree/spree/assignees{/user}","branches_url":"https://api.github.com/repos/spree/spree/branches{/branch}","tags_url":"https://api.github.com/repos/spree/spree/tags","blobs_url":"https://api.github.com/repos/spree/spree/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/spree/spree/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/spree/spree/git/refs{/sha}","trees_url":"https://api.github.com/repos/spree/spree/git/trees{/sha}","statuses_url":"https://api.github.com/repos/spree/spree/statuses/{sha}","languages_url":"https://api.github.com/repos/spree/spree/languages","stargazers_url":"https://api.github.com/repos/spree/spree/stargazers","contributors_url":"https://api.github.com/repos/spree/spree/contributors","subscribers_url":"https://api.github.com/repos/spree/spree/subscribers","subscription_url":"https://api.github.com/repos/spree/spree/subscription","commits_url":"https://api.github.com/repos/spree/spree/commits{/sha}","git_commits_url":"https://api.github.com/repos/spree/spree/git/commits{/sha}","comments_url":"https://api.github.com/repos/spree/spree/comments{/number}","issue_comment_url":"https://api.github.com/repos/spree/spree/issues/comments/{number}","contents_url":"https://api.github.com/repos/spree/spree/contents/{+path}","compare_url":"https://api.github.com/repos/spree/spree/compare/{base}...{head}","merges_url":"https://api.github.com/repos/spree/spree/merges","archive_url":"https://api.github.com/repos/spree/spree/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/spree/spree/downloads","issues_url":"https://api.github.com/repos/spree/spree/issues{/number}","pulls_url":"https://api.github.com/repos/spree/spree/pulls{/number}","milestones_url":"https://api.github.com/repos/spree/spree/milestones{/number}","notifications_url":"https://api.github.com/repos/spree/spree/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/spree/spree/labels{/name}","releases_url":"https://api.github.com/repos/spree/spree/releases{/id}","created_at":"2008-03-10T14:45:35Z","updated_at":"2015-02-19T01:25:04Z","pushed_at":"2015-02-18T21:15:45Z","git_url":"git://github.com/spree/spree.git","ssh_url":"git@github.com:spree/spree.git","clone_url":"https://github.com/spree/spree.git","svn_url":"https://github.com/spree/spree","homepage":"http://spreecommerce.com","size":130993,"stargazers_count":5995,"watchers_count":5995,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2798,"mirror_url":null,"open_issues_count":88,"forks":2798,"open_issues":88,"watchers":5995,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/spree/spree/pulls/6068"},"html":{"href":"https://github.com/spree/spree/pull/6068"},"issue":{"href":"https://api.github.com/repos/spree/spree/issues/6068"},"comments":{"href":"https://api.github.com/repos/spree/spree/issues/6068/comments"},"review_comments":{"href":"https://api.github.com/repos/spree/spree/pulls/6068/comments"},"review_comment":{"href":"https://api.github.com/repos/spree/spree/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/spree/spree/pulls/6068/commits"},"statuses":{"href":"https://api.github.com/repos/spree/spree/statuses/e207a9fe5bac949ad50e22e36f596a59a9038c30"}}}}