{"action":"created","issue":{"url":"https://api.github.com/repos/rails/rails/issues/18949","labels_url":"https://api.github.com/repos/rails/rails/issues/18949/labels{/name}","comments_url":"https://api.github.com/repos/rails/rails/issues/18949/comments","events_url":"https://api.github.com/repos/rails/rails/issues/18949/events","html_url":"https://github.com/rails/rails/pull/18949","id":57745239,"number":18949,"title":"Allow to pass a string value to size option in `image_tag` and `video_tag`","user":{"login":"mehlah","id":224928,"avatar_url":"https://avatars.githubusercontent.com/u/224928?v=3","gravatar_id":"","url":"https://api.github.com/users/mehlah","html_url":"https://github.com/mehlah","followers_url":"https://api.github.com/users/mehlah/followers","following_url":"https://api.github.com/users/mehlah/following{/other_user}","gists_url":"https://api.github.com/users/mehlah/gists{/gist_id}","starred_url":"https://api.github.com/users/mehlah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mehlah/subscriptions","organizations_url":"https://api.github.com/users/mehlah/orgs","repos_url":"https://api.github.com/users/mehlah/repos","events_url":"https://api.github.com/users/mehlah/events{/privacy}","received_events_url":"https://api.github.com/users/mehlah/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-15T20:45:54Z","updated_at":"2015-02-16T07:29:00Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/rails/rails/pulls/18949","html_url":"https://github.com/rails/rails/pull/18949","diff_url":"https://github.com/rails/rails/pull/18949.diff","patch_url":"https://github.com/rails/rails/pull/18949.patch"},"body":"Before, passing `image_tag(\"foo.png\", size: 120)` was silently ignored, because `120` wasn't a `String`.\r\nAs we can set a width and height with numerical values: `image_tag(\"foo.png\", width: 120, height: 120)`, this makes it more consistent for `size` option too.\r\n\r\nSame thing for `video_tag`.\r\n\r\nFor reference, the `size` option has been introduced at https://github.com/rails/rails/pull/7754"},"comment":{"url":"https://api.github.com/repos/rails/rails/issues/comments/74468931","html_url":"https://github.com/rails/rails/pull/18949#issuecomment-74468931","issue_url":"https://api.github.com/repos/rails/rails/issues/18949","id":74468931,"user":{"login":"senny","id":5402,"avatar_url":"https://avatars.githubusercontent.com/u/5402?v=3","gravatar_id":"","url":"https://api.github.com/users/senny","html_url":"https://github.com/senny","followers_url":"https://api.github.com/users/senny/followers","following_url":"https://api.github.com/users/senny/following{/other_user}","gists_url":"https://api.github.com/users/senny/gists{/gist_id}","starred_url":"https://api.github.com/users/senny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/senny/subscriptions","organizations_url":"https://api.github.com/users/senny/orgs","repos_url":"https://api.github.com/users/senny/repos","events_url":"https://api.github.com/users/senny/events{/privacy}","received_events_url":"https://api.github.com/users/senny/received_events","type":"User","site_admin":false},"created_at":"2015-02-16T07:29:00Z","updated_at":"2015-02-16T07:29:00Z","body":"@mehlah can you add a test-case to prevent regressions and an entry in the CHANGELOG?"}}