{"action":"closed","issue":{"url":"https://api.github.com/repos/jamesmartin/inline_svg/issues/36","repository_url":"https://api.github.com/repos/jamesmartin/inline_svg","labels_url":"https://api.github.com/repos/jamesmartin/inline_svg/issues/36/labels{/name}","comments_url":"https://api.github.com/repos/jamesmartin/inline_svg/issues/36/comments","events_url":"https://api.github.com/repos/jamesmartin/inline_svg/issues/36/events","html_url":"https://github.com/jamesmartin/inline_svg/issues/36","id":155076209,"number":36,"title":"Is it possible add a transformation without any associated attribute?","user":{"login":"andrewaguiar","id":141706,"avatar_url":"https://avatars.githubusercontent.com/u/141706?v=3","gravatar_id":"","url":"https://api.github.com/users/andrewaguiar","html_url":"https://github.com/andrewaguiar","followers_url":"https://api.github.com/users/andrewaguiar/followers","following_url":"https://api.github.com/users/andrewaguiar/following{/other_user}","gists_url":"https://api.github.com/users/andrewaguiar/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewaguiar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewaguiar/subscriptions","organizations_url":"https://api.github.com/users/andrewaguiar/orgs","repos_url":"https://api.github.com/users/andrewaguiar/repos","events_url":"https://api.github.com/users/andrewaguiar/events{/privacy}","received_events_url":"https://api.github.com/users/andrewaguiar/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-05-16T17:16:49Z","updated_at":"2016-05-23T06:28:03Z","closed_at":"2016-05-23T06:28:03Z","body":"Is it possible add a transformation without any associated attribute? For instance, I would like to add a transformation to every svg without a specific attribute eg:\r\n\r\n```ruby\r\nInlineSvg.configure do |config|\r\n  # Is it possible\r\n  config.add_custom_transformation(transform: SetFocusableToFalseTransform)\r\nend\r\n```\r\n\r\nand the transformation\r\n\r\n```ruby\r\nclass SetFocusableToFalseTransform < InlineSvg::CustomTransformation\r\n  def transform(doc)\r\n    svg = doc.at_css('svg')\r\n    svg['focusable'] = 'false'\r\n    doc\r\n  end\r\nend\r\n```\r\n\r\nThanks"}}
{"actor":{"display_login":"jamesmartin"}}