{"action":"created","issue":{"url":"https://api.github.com/repos/amatsuda/active_decorator/issues/88","repository_url":"https://api.github.com/repos/amatsuda/active_decorator","labels_url":"https://api.github.com/repos/amatsuda/active_decorator/issues/88/labels{/name}","comments_url":"https://api.github.com/repos/amatsuda/active_decorator/issues/88/comments","events_url":"https://api.github.com/repos/amatsuda/active_decorator/issues/88/events","html_url":"https://github.com/amatsuda/active_decorator/issues/88","id":254325237,"number":88,"title":"Support for ActionController::API","user":{"login":"frodsan","id":840464,"avatar_url":"https://avatars1.githubusercontent.com/u/840464?v=4","gravatar_id":"","url":"https://api.github.com/users/frodsan","html_url":"https://github.com/frodsan","followers_url":"https://api.github.com/users/frodsan/followers","following_url":"https://api.github.com/users/frodsan/following{/other_user}","gists_url":"https://api.github.com/users/frodsan/gists{/gist_id}","starred_url":"https://api.github.com/users/frodsan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frodsan/subscriptions","organizations_url":"https://api.github.com/users/frodsan/orgs","repos_url":"https://api.github.com/users/frodsan/repos","events_url":"https://api.github.com/users/frodsan/events{/privacy}","received_events_url":"https://api.github.com/users/frodsan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-08-31T12:57:12Z","updated_at":"2017-08-31T14:39:32Z","closed_at":null,"author_association":"NONE","body":"This doesn't work with ActionController::API. I added an initializer with this code:\r\n\r\n```ruby\r\n# frozen_string_literal: true\r\n\r\n# Be sure to restart your server when you modify this file.\r\n\r\nActiveSupport.on_load(:action_controller) do\r\n  require 'active_decorator/monkey/abstract_controller/rendering'\r\n  ActionController::API.send :prepend, ActiveDecorator::Monkey::AbstractController::Rendering\r\n\r\n  require 'active_decorator/monkey/action_controller/base/rescue_from'\r\n  ActionController::API.send :prepend, ActiveDecorator::Monkey::ActionController::Base\r\n\r\n  ActionController::API.send :include, ActiveDecorator::ViewContext::Filter\r\nend\r\n```\r\n\r\nDo you think this is enough to support AC::API? I can add it to the project."},"comment":{"url":"https://api.github.com/repos/amatsuda/active_decorator/issues/comments/326316440","html_url":"https://github.com/amatsuda/active_decorator/issues/88#issuecomment-326316440","issue_url":"https://api.github.com/repos/amatsuda/active_decorator/issues/88","id":326316440,"user":{"login":"frodsan","id":840464,"avatar_url":"https://avatars1.githubusercontent.com/u/840464?v=4","gravatar_id":"","url":"https://api.github.com/users/frodsan","html_url":"https://github.com/frodsan","followers_url":"https://api.github.com/users/frodsan/followers","following_url":"https://api.github.com/users/frodsan/following{/other_user}","gists_url":"https://api.github.com/users/frodsan/gists{/gist_id}","starred_url":"https://api.github.com/users/frodsan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frodsan/subscriptions","organizations_url":"https://api.github.com/users/frodsan/orgs","repos_url":"https://api.github.com/users/frodsan/repos","events_url":"https://api.github.com/users/frodsan/events{/privacy}","received_events_url":"https://api.github.com/users/frodsan/received_events","type":"User","site_admin":false},"created_at":"2017-08-31T14:39:32Z","updated_at":"2017-08-31T14:39:32Z","author_association":"NONE","body":"No exceptions so far, I can provide a PR over the weekend. Thanks."}}
{"actor":{"display_login":"frodsan"}}