{"action":"closed","number":5310,"pull_request":{"url":"https://api.github.com/repos/spree/spree/pulls/5310","id":20640723,"html_url":"https://github.com/spree/spree/pull/5310","diff_url":"https://github.com/spree/spree/pull/5310.diff","patch_url":"https://github.com/spree/spree/pull/5310.patch","issue_url":"https://api.github.com/repos/spree/spree/issues/5310","number":5310,"state":"closed","locked":false,"title":"available scope now cares about 'currency' param","user":{"login":"davidlibrera","id":400256,"avatar_url":"https://avatars.githubusercontent.com/u/400256?v=3","gravatar_id":"","url":"https://api.github.com/users/davidlibrera","html_url":"https://github.com/davidlibrera","followers_url":"https://api.github.com/users/davidlibrera/followers","following_url":"https://api.github.com/users/davidlibrera/following{/other_user}","gists_url":"https://api.github.com/users/davidlibrera/gists{/gist_id}","starred_url":"https://api.github.com/users/davidlibrera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidlibrera/subscriptions","organizations_url":"https://api.github.com/users/davidlibrera/orgs","repos_url":"https://api.github.com/users/davidlibrera/repos","events_url":"https://api.github.com/users/davidlibrera/events{/privacy}","received_events_url":"https://api.github.com/users/davidlibrera/received_events","type":"User","site_admin":false},"body":"I noticed that if a product has 2 prices with different currencies, the Spree::Product.available scope returns the product more than one time.\r\nSpree::Product.available ignores the currency param. I added the .where conditions on Spree::Price table","created_at":"2014-09-02T21:11:37Z","updated_at":"2015-01-07T19:06:23Z","closed_at":"2015-01-07T19:06:23Z","merged_at":null,"merge_commit_sha":"8bdfc43fc0a223695d8cabacc592f5ccb8c728b0","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/spree/spree/pulls/5310/commits","review_comments_url":"https://api.github.com/repos/spree/spree/pulls/5310/comments","review_comment_url":"https://api.github.com/repos/spree/spree/pulls/comments/{number}","comments_url":"https://api.github.com/repos/spree/spree/issues/5310/comments","statuses_url":"https://api.github.com/repos/spree/spree/statuses/244e2d1379d408fccf79b276b24e032f82eb09c2","head":{"label":"davidlibrera:2-3-stable","ref":"2-3-stable","sha":"244e2d1379d408fccf79b276b24e032f82eb09c2","user":{"login":"davidlibrera","id":400256,"avatar_url":"https://avatars.githubusercontent.com/u/400256?v=3","gravatar_id":"","url":"https://api.github.com/users/davidlibrera","html_url":"https://github.com/davidlibrera","followers_url":"https://api.github.com/users/davidlibrera/followers","following_url":"https://api.github.com/users/davidlibrera/following{/other_user}","gists_url":"https://api.github.com/users/davidlibrera/gists{/gist_id}","starred_url":"https://api.github.com/users/davidlibrera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidlibrera/subscriptions","organizations_url":"https://api.github.com/users/davidlibrera/orgs","repos_url":"https://api.github.com/users/davidlibrera/repos","events_url":"https://api.github.com/users/davidlibrera/events{/privacy}","received_events_url":"https://api.github.com/users/davidlibrera/received_events","type":"User","site_admin":false},"repo":{"id":22621641,"name":"spree","full_name":"davidlibrera/spree","owner":{"login":"davidlibrera","id":400256,"avatar_url":"https://avatars.githubusercontent.com/u/400256?v=3","gravatar_id":"","url":"https://api.github.com/users/davidlibrera","html_url":"https://github.com/davidlibrera","followers_url":"https://api.github.com/users/davidlibrera/followers","following_url":"https://api.github.com/users/davidlibrera/following{/other_user}","gists_url":"https://api.github.com/users/davidlibrera/gists{/gist_id}","starred_url":"https://api.github.com/users/davidlibrera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidlibrera/subscriptions","organizations_url":"https://api.github.com/users/davidlibrera/orgs","repos_url":"https://api.github.com/users/davidlibrera/repos","events_url":"https://api.github.com/users/davidlibrera/events{/privacy}","received_events_url":"https://api.github.com/users/davidlibrera/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/davidlibrera/spree","description":"Spree is a complete open source e-commerce solution for Ruby on Rails.","fork":true,"url":"https://api.github.com/repos/davidlibrera/spree","forks_url":"https://api.github.com/repos/davidlibrera/spree/forks","keys_url":"https://api.github.com/repos/davidlibrera/spree/keys{/key_id}","collaborators_url":"https://api.github.com/repos/davidlibrera/spree/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/davidlibrera/spree/teams","hooks_url":"https://api.github.com/repos/davidlibrera/spree/hooks","issue_events_url":"https://api.github.com/repos/davidlibrera/spree/issues/events{/number}","events_url":"https://api.github.com/repos/davidlibrera/spree/events","assignees_url":"https://api.github.com/repos/davidlibrera/spree/assignees{/user}","branches_url":"https://api.github.com/repos/davidlibrera/spree/branches{/branch}","tags_url":"https://api.github.com/repos/davidlibrera/spree/tags","blobs_url":"https://api.github.com/repos/davidlibrera/spree/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/davidlibrera/spree/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/davidlibrera/spree/git/refs{/sha}","trees_url":"https://api.github.com/repos/davidlibrera/spree/git/trees{/sha}","statuses_url":"https://api.github.com/repos/davidlibrera/spree/statuses/{sha}","languages_url":"https://api.github.com/repos/davidlibrera/spree/languages","stargazers_url":"https://api.github.com/repos/davidlibrera/spree/stargazers","contributors_url":"https://api.github.com/repos/davidlibrera/spree/contributors","subscribers_url":"https://api.github.com/repos/davidlibrera/spree/subscribers","subscription_url":"https://api.github.com/repos/davidlibrera/spree/subscription","commits_url":"https://api.github.com/repos/davidlibrera/spree/commits{/sha}","git_commits_url":"https://api.github.com/repos/davidlibrera/spree/git/commits{/sha}","comments_url":"https://api.github.com/repos/davidlibrera/spree/comments{/number}","issue_comment_url":"https://api.github.com/repos/davidlibrera/spree/issues/comments/{number}","contents_url":"https://api.github.com/repos/davidlibrera/spree/contents/{+path}","compare_url":"https://api.github.com/repos/davidlibrera/spree/compare/{base}...{head}","merges_url":"https://api.github.com/repos/davidlibrera/spree/merges","archive_url":"https://api.github.com/repos/davidlibrera/spree/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/davidlibrera/spree/downloads","issues_url":"https://api.github.com/repos/davidlibrera/spree/issues{/number}","pulls_url":"https://api.github.com/repos/davidlibrera/spree/pulls{/number}","milestones_url":"https://api.github.com/repos/davidlibrera/spree/milestones{/number}","notifications_url":"https://api.github.com/repos/davidlibrera/spree/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/davidlibrera/spree/labels{/name}","releases_url":"https://api.github.com/repos/davidlibrera/spree/releases{/id}","created_at":"2014-08-04T22:08:02Z","updated_at":"2014-08-04T18:26:17Z","pushed_at":"2014-09-03T01:22:45Z","git_url":"git://github.com/davidlibrera/spree.git","ssh_url":"git@github.com:davidlibrera/spree.git","clone_url":"https://github.com/davidlibrera/spree.git","svn_url":"https://github.com/davidlibrera/spree","homepage":"http://spreecommerce.com","size":41901,"stargazers_count":0,"watchers_count":0,"language":null,"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:2-3-stable","ref":"2-3-stable","sha":"fcf386391bf078cb395d8d581d9228eaff59a4da","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-01-07T18:57:07Z","pushed_at":"2015-01-07T18:57:07Z","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":125954,"stargazers_count":5821,"watchers_count":5821,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2712,"mirror_url":null,"open_issues_count":113,"forks":2712,"open_issues":113,"watchers":5821,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/spree/spree/pulls/5310"},"html":{"href":"https://github.com/spree/spree/pull/5310"},"issue":{"href":"https://api.github.com/repos/spree/spree/issues/5310"},"comments":{"href":"https://api.github.com/repos/spree/spree/issues/5310/comments"},"review_comments":{"href":"https://api.github.com/repos/spree/spree/pulls/5310/comments"},"review_comment":{"href":"https://api.github.com/repos/spree/spree/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/spree/spree/pulls/5310/commits"},"statuses":{"href":"https://api.github.com/repos/spree/spree/statuses/244e2d1379d408fccf79b276b24e032f82eb09c2"}},"merged":false,"mergeable":true,"mergeable_state":"unstable","merged_by":null,"comments":2,"review_comments":0,"commits":2,"additions":27,"deletions":2,"changed_files":4}}