{"action":"created","issue":{"url":"https://api.github.com/repos/rails-api/rails-api/issues/41","labels_url":"https://api.github.com/repos/rails-api/rails-api/issues/41/labels{/name}","comments_url":"https://api.github.com/repos/rails-api/rails-api/issues/41/comments","events_url":"https://api.github.com/repos/rails-api/rails-api/issues/41/events","html_url":"https://github.com/rails-api/rails-api/issues/41","id":8108972,"number":41,"title":"Using rails-api as an isolated engine","user":{"login":"mattiassvedhem","id":721122,"avatar_url":"https://avatars.githubusercontent.com/u/721122?v=3","gravatar_id":"","url":"https://api.github.com/users/mattiassvedhem","html_url":"https://github.com/mattiassvedhem","followers_url":"https://api.github.com/users/mattiassvedhem/followers","following_url":"https://api.github.com/users/mattiassvedhem/following{/other_user}","gists_url":"https://api.github.com/users/mattiassvedhem/gists{/gist_id}","starred_url":"https://api.github.com/users/mattiassvedhem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattiassvedhem/subscriptions","organizations_url":"https://api.github.com/users/mattiassvedhem/orgs","repos_url":"https://api.github.com/users/mattiassvedhem/repos","events_url":"https://api.github.com/users/mattiassvedhem/events{/privacy}","received_events_url":"https://api.github.com/users/mattiassvedhem/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2012-11-05T16:04:08Z","updated_at":"2015-10-20T08:04:18Z","closed_at":"2012-11-05T16:09:52Z","body":"Using rails-api as an isolated engine and mounting it in a normal rails application I'm getting this error\r\n\r\n```\r\nwrong argument type Module (expected Class)\r\n```\r\n\r\nwith this code\r\n\r\n```\r\nmodule Api\r\n  class ApplicationController < ActionController::API\r\n  end\r\nend\r\n```\r\n\r\nAnd the trace gives me this:\r\n```\r\napp/controllers/api/application_controller.rb:2:in `<module:Api>'\r\n```\r\n\r\nSomehow it seems like it expects the wrapping module to be a class. However switching to ActionController::Base solves it. Any idea why? Maybe I'm missing some controller module that's needed for that to work?\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/rails-api/rails-api/issues/comments/149469438","html_url":"https://github.com/rails-api/rails-api/issues/41#issuecomment-149469438","issue_url":"https://api.github.com/repos/rails-api/rails-api/issues/41","id":149469438,"user":{"login":"webattitude","id":4943831,"avatar_url":"https://avatars.githubusercontent.com/u/4943831?v=3","gravatar_id":"","url":"https://api.github.com/users/webattitude","html_url":"https://github.com/webattitude","followers_url":"https://api.github.com/users/webattitude/followers","following_url":"https://api.github.com/users/webattitude/following{/other_user}","gists_url":"https://api.github.com/users/webattitude/gists{/gist_id}","starred_url":"https://api.github.com/users/webattitude/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/webattitude/subscriptions","organizations_url":"https://api.github.com/users/webattitude/orgs","repos_url":"https://api.github.com/users/webattitude/repos","events_url":"https://api.github.com/users/webattitude/events{/privacy}","received_events_url":"https://api.github.com/users/webattitude/received_events","type":"User","site_admin":false},"created_at":"2015-10-20T08:04:18Z","updated_at":"2015-10-20T08:04:18Z","body":"Ok problem solved. Dependencies have to be set in gemspec file."}}