{"action":"created","issue":{"url":"https://api.github.com/repos/Shopify/liquid/issues/577","labels_url":"https://api.github.com/repos/Shopify/liquid/issues/577/labels{/name}","comments_url":"https://api.github.com/repos/Shopify/liquid/issues/577/comments","events_url":"https://api.github.com/repos/Shopify/liquid/issues/577/events","html_url":"https://github.com/Shopify/liquid/pull/577","id":82004758,"number":577,"title":"Fix exception from using an empty string for the table row collection.","user":{"login":"dylanahsmith","id":954402,"avatar_url":"https://avatars.githubusercontent.com/u/954402?v=3","gravatar_id":"","url":"https://api.github.com/users/dylanahsmith","html_url":"https://github.com/dylanahsmith","followers_url":"https://api.github.com/users/dylanahsmith/followers","following_url":"https://api.github.com/users/dylanahsmith/following{/other_user}","gists_url":"https://api.github.com/users/dylanahsmith/gists{/gist_id}","starred_url":"https://api.github.com/users/dylanahsmith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dylanahsmith/subscriptions","organizations_url":"https://api.github.com/users/dylanahsmith/orgs","repos_url":"https://api.github.com/users/dylanahsmith/repos","events_url":"https://api.github.com/users/dylanahsmith/events{/privacy}","received_events_url":"https://api.github.com/users/dylanahsmith/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-28T16:08:07Z","updated_at":"2015-05-28T16:12:49Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Shopify/liquid/pulls/577","html_url":"https://github.com/Shopify/liquid/pull/577","diff_url":"https://github.com/Shopify/liquid/pull/577.diff","patch_url":"https://github.com/Shopify/liquid/pull/577.patch"},"body":"@fw42 & @tjoyal for review\r\n\r\n## Problem\r\n\r\nLiquid like `{% tablerow product in collections.frontpage.products cols:3  %}` was resulting in a `Liquid error: undefined method `each' for \\\"\\\":String` error when the shop doesn't have a frontpage collection.  This empty string was coming from an EmptyDrop that we returned when a collection couldn't be found.\r\n\r\nThis was inconsistent with the `for` tag, which would treat an empty string as an empty collection.  Both the `for` and `tablerow` tags will treat a non-empty string as a collection with a single item.  It is also inconsistent with how liquid worked with ruby 1.8.7, where String#each was the same as String#each_line.\r\n\r\n## Solution\r\n\r\nTreat an empty string the same as an empty collection."},"comment":{"url":"https://api.github.com/repos/Shopify/liquid/issues/comments/106453105","html_url":"https://github.com/Shopify/liquid/pull/577#issuecomment-106453105","issue_url":"https://api.github.com/repos/Shopify/liquid/issues/577","id":106453105,"user":{"login":"fw42","id":2072686,"avatar_url":"https://avatars.githubusercontent.com/u/2072686?v=3","gravatar_id":"","url":"https://api.github.com/users/fw42","html_url":"https://github.com/fw42","followers_url":"https://api.github.com/users/fw42/followers","following_url":"https://api.github.com/users/fw42/following{/other_user}","gists_url":"https://api.github.com/users/fw42/gists{/gist_id}","starred_url":"https://api.github.com/users/fw42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fw42/subscriptions","organizations_url":"https://api.github.com/users/fw42/orgs","repos_url":"https://api.github.com/users/fw42/repos","events_url":"https://api.github.com/users/fw42/events{/privacy}","received_events_url":"https://api.github.com/users/fw42/received_events","type":"User","site_admin":false},"created_at":"2015-05-28T16:12:49Z","updated_at":"2015-05-28T16:12:49Z","body":"any backwards-compatibility concerns here?"}}