{"action":"created","comment":{"url":"https://api.github.com/repos/spree/spree/pulls/comments/33411395","id":33411395,"diff_hunk":"@@ -1,8 +1,13 @@\n module Spree\n   class PaymentMethod < Spree::Base\n     acts_as_paranoid\n-    DISPLAY = [:both, :front_end, :back_end]\n-    default_scope { where(deleted_at: nil) }\n+\n+    DISPLAY = [:both, :front_end, :back_end].freeze\n+\n+    scope :active,                 -> { where(active: true) }\n+    scope :available,              -> { active.where(display_on: [:front_end, :back_end, :both]) }","path":"core/app/models/spree/payment_method.rb","position":10,"original_position":10,"commit_id":"f3064f64a62b370ed3624d716ad027d6eeaca2bf","original_commit_id":"f3064f64a62b370ed3624d716ad027d6eeaca2bf","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":"Unnecessary spacing detected.","created_at":"2015-06-27T09:40:25Z","updated_at":"2015-06-27T09:40:25Z","html_url":"https://github.com/spree/spree/pull/6540#discussion_r33411395","pull_request_url":"https://api.github.com/repos/spree/spree/pulls/6540","_links":{"self":{"href":"https://api.github.com/repos/spree/spree/pulls/comments/33411395"},"html":{"href":"https://github.com/spree/spree/pull/6540#discussion_r33411395"},"pull_request":{"href":"https://api.github.com/repos/spree/spree/pulls/6540"}}},"pull_request":{"url":"https://api.github.com/repos/spree/spree/pulls/6540","id":38707100,"html_url":"https://github.com/spree/spree/pull/6540","diff_url":"https://github.com/spree/spree/pull/6540.diff","patch_url":"https://github.com/spree/spree/pull/6540.patch","issue_url":"https://api.github.com/repos/spree/spree/issues/6540","number":6540,"state":"open","locked":false,"title":"Update/clean up payment method display, closes #6421","user":{"login":"alepore","id":557414,"avatar_url":"https://avatars.githubusercontent.com/u/557414?v=3","gravatar_id":"","url":"https://api.github.com/users/alepore","html_url":"https://github.com/alepore","followers_url":"https://api.github.com/users/alepore/followers","following_url":"https://api.github.com/users/alepore/following{/other_user}","gists_url":"https://api.github.com/users/alepore/gists{/gist_id}","starred_url":"https://api.github.com/users/alepore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alepore/subscriptions","organizations_url":"https://api.github.com/users/alepore/orgs","repos_url":"https://api.github.com/users/alepore/repos","events_url":"https://api.github.com/users/alepore/events{/privacy}","received_events_url":"https://api.github.com/users/alepore/received_events","type":"User","site_admin":false},"body":"see discussion on #6421 ","created_at":"2015-06-27T09:40:22Z","updated_at":"2015-06-27T09:40:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"27702d415828e715f78afa024cc071d3923eae36","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/spree/spree/pulls/6540/commits","review_comments_url":"https://api.github.com/repos/spree/spree/pulls/6540/comments","review_comment_url":"https://api.github.com/repos/spree/spree/pulls/comments{/number}","comments_url":"https://api.github.com/repos/spree/spree/issues/6540/comments","statuses_url":"https://api.github.com/repos/spree/spree/statuses/f3064f64a62b370ed3624d716ad027d6eeaca2bf","head":{"label":"alepore:payment-method-display","ref":"payment-method-display","sha":"f3064f64a62b370ed3624d716ad027d6eeaca2bf","user":{"login":"alepore","id":557414,"avatar_url":"https://avatars.githubusercontent.com/u/557414?v=3","gravatar_id":"","url":"https://api.github.com/users/alepore","html_url":"https://github.com/alepore","followers_url":"https://api.github.com/users/alepore/followers","following_url":"https://api.github.com/users/alepore/following{/other_user}","gists_url":"https://api.github.com/users/alepore/gists{/gist_id}","starred_url":"https://api.github.com/users/alepore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alepore/subscriptions","organizations_url":"https://api.github.com/users/alepore/orgs","repos_url":"https://api.github.com/users/alepore/repos","events_url":"https://api.github.com/users/alepore/events{/privacy}","received_events_url":"https://api.github.com/users/alepore/received_events","type":"User","site_admin":false},"repo":{"id":14171556,"name":"spree","full_name":"alepore/spree","owner":{"login":"alepore","id":557414,"avatar_url":"https://avatars.githubusercontent.com/u/557414?v=3","gravatar_id":"","url":"https://api.github.com/users/alepore","html_url":"https://github.com/alepore","followers_url":"https://api.github.com/users/alepore/followers","following_url":"https://api.github.com/users/alepore/following{/other_user}","gists_url":"https://api.github.com/users/alepore/gists{/gist_id}","starred_url":"https://api.github.com/users/alepore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alepore/subscriptions","organizations_url":"https://api.github.com/users/alepore/orgs","repos_url":"https://api.github.com/users/alepore/repos","events_url":"https://api.github.com/users/alepore/events{/privacy}","received_events_url":"https://api.github.com/users/alepore/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/alepore/spree","description":"Spree is a complete open source e-commerce solution for Ruby on Rails.","fork":true,"url":"https://api.github.com/repos/alepore/spree","forks_url":"https://api.github.com/repos/alepore/spree/forks","keys_url":"https://api.github.com/repos/alepore/spree/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alepore/spree/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alepore/spree/teams","hooks_url":"https://api.github.com/repos/alepore/spree/hooks","issue_events_url":"https://api.github.com/repos/alepore/spree/issues/events{/number}","events_url":"https://api.github.com/repos/alepore/spree/events","assignees_url":"https://api.github.com/repos/alepore/spree/assignees{/user}","branches_url":"https://api.github.com/repos/alepore/spree/branches{/branch}","tags_url":"https://api.github.com/repos/alepore/spree/tags","blobs_url":"https://api.github.com/repos/alepore/spree/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alepore/spree/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alepore/spree/git/refs{/sha}","trees_url":"https://api.github.com/repos/alepore/spree/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alepore/spree/statuses/{sha}","languages_url":"https://api.github.com/repos/alepore/spree/languages","stargazers_url":"https://api.github.com/repos/alepore/spree/stargazers","contributors_url":"https://api.github.com/repos/alepore/spree/contributors","subscribers_url":"https://api.github.com/repos/alepore/spree/subscribers","subscription_url":"https://api.github.com/repos/alepore/spree/subscription","commits_url":"https://api.github.com/repos/alepore/spree/commits{/sha}","git_commits_url":"https://api.github.com/repos/alepore/spree/git/commits{/sha}","comments_url":"https://api.github.com/repos/alepore/spree/comments{/number}","issue_comment_url":"https://api.github.com/repos/alepore/spree/issues/comments{/number}","contents_url":"https://api.github.com/repos/alepore/spree/contents/{+path}","compare_url":"https://api.github.com/repos/alepore/spree/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alepore/spree/merges","archive_url":"https://api.github.com/repos/alepore/spree/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alepore/spree/downloads","issues_url":"https://api.github.com/repos/alepore/spree/issues{/number}","pulls_url":"https://api.github.com/repos/alepore/spree/pulls{/number}","milestones_url":"https://api.github.com/repos/alepore/spree/milestones{/number}","notifications_url":"https://api.github.com/repos/alepore/spree/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alepore/spree/labels{/name}","releases_url":"https://api.github.com/repos/alepore/spree/releases{/id}","created_at":"2013-11-06T12:08:09Z","updated_at":"2014-05-21T16:17:48Z","pushed_at":"2015-06-27T09:38:28Z","git_url":"git://github.com/alepore/spree.git","ssh_url":"git@github.com:alepore/spree.git","clone_url":"https://github.com/alepore/spree.git","svn_url":"https://github.com/alepore/spree","homepage":"http://spreecommerce.com","size":74551,"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":"4493c1258e1defbe919691ac5e522671156d9731","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-06-26T23:18:52Z","pushed_at":"2015-06-27T09:40:22Z","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":136695,"stargazers_count":6457,"watchers_count":6457,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3036,"mirror_url":null,"open_issues_count":135,"forks":3036,"open_issues":135,"watchers":6457,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/spree/spree/pulls/6540"},"html":{"href":"https://github.com/spree/spree/pull/6540"},"issue":{"href":"https://api.github.com/repos/spree/spree/issues/6540"},"comments":{"href":"https://api.github.com/repos/spree/spree/issues/6540/comments"},"review_comments":{"href":"https://api.github.com/repos/spree/spree/pulls/6540/comments"},"review_comment":{"href":"https://api.github.com/repos/spree/spree/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/spree/spree/pulls/6540/commits"},"statuses":{"href":"https://api.github.com/repos/spree/spree/statuses/f3064f64a62b370ed3624d716ad027d6eeaca2bf"}}}}