{"action":"created","issue":{"url":"https://api.github.com/repos/lynndylanhurley/devise_token_auth/issues/465","repository_url":"https://api.github.com/repos/lynndylanhurley/devise_token_auth","labels_url":"https://api.github.com/repos/lynndylanhurley/devise_token_auth/issues/465/labels{/name}","comments_url":"https://api.github.com/repos/lynndylanhurley/devise_token_auth/issues/465/comments","events_url":"https://api.github.com/repos/lynndylanhurley/devise_token_auth/issues/465/events","html_url":"https://github.com/lynndylanhurley/devise_token_auth/issues/465","id":121813097,"number":465,"title":"Unable to call `rails g devise_token_auth:install` within rails engine","user":{"login":"djsegal","id":3156114,"avatar_url":"https://avatars.githubusercontent.com/u/3156114?v=3","gravatar_id":"","url":"https://api.github.com/users/djsegal","html_url":"https://github.com/djsegal","followers_url":"https://api.github.com/users/djsegal/followers","following_url":"https://api.github.com/users/djsegal/following{/other_user}","gists_url":"https://api.github.com/users/djsegal/gists{/gist_id}","starred_url":"https://api.github.com/users/djsegal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djsegal/subscriptions","organizations_url":"https://api.github.com/users/djsegal/orgs","repos_url":"https://api.github.com/users/djsegal/repos","events_url":"https://api.github.com/users/djsegal/events{/privacy}","received_events_url":"https://api.github.com/users/djsegal/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-11T23:35:11Z","updated_at":"2016-03-19T07:46:48Z","closed_at":null,"body":"getting this error when I run it within my api engine:\r\n\r\n```\r\n.../activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:878:in `retrieve_connection': No connection pool for ActiveRecord::Base (ActiveRecord::ConnectionNotEstablished)\r\n  from .../activerecord/lib/active_record/connection_handling.rb:113:in `retrieve_connection'\r\n  from .../activerecord/lib/active_record/connection_handling.rb:87:in `connection'\r\n  from /devise_token_auth/lib/generators/devise_token_auth/install_generator.rb:154:in `database_name'\r\n  from /devise_token_auth/lib/generators/devise_token_auth/install_generator.rb:136:in `postgres?'\r\n  from /devise_token_auth/lib/generators/devise_token_auth/install_generator.rb:132:in `json_supported_database?'\r\n  from (erb):43:in `migration_template'\r\n```\r\n\r\n* i believe this is because the base directory doesn't have a `config/database.yml` file (because it is actually kept at `./spec/dummy/config/database.yml`). \r\n* i tried monkey around with it to get it to work, but I eventually gave up and just made `json_supported_database?` always return `true`"},"comment":{"url":"https://api.github.com/repos/lynndylanhurley/devise_token_auth/issues/comments/198660032","html_url":"https://github.com/lynndylanhurley/devise_token_auth/issues/465#issuecomment-198660032","issue_url":"https://api.github.com/repos/lynndylanhurley/devise_token_auth/issues/465","id":198660032,"user":{"login":"shifakhan","id":4659636,"avatar_url":"https://avatars.githubusercontent.com/u/4659636?v=3","gravatar_id":"","url":"https://api.github.com/users/shifakhan","html_url":"https://github.com/shifakhan","followers_url":"https://api.github.com/users/shifakhan/followers","following_url":"https://api.github.com/users/shifakhan/following{/other_user}","gists_url":"https://api.github.com/users/shifakhan/gists{/gist_id}","starred_url":"https://api.github.com/users/shifakhan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shifakhan/subscriptions","organizations_url":"https://api.github.com/users/shifakhan/orgs","repos_url":"https://api.github.com/users/shifakhan/repos","events_url":"https://api.github.com/users/shifakhan/events{/privacy}","received_events_url":"https://api.github.com/users/shifakhan/received_events","type":"User","site_admin":false},"created_at":"2016-03-19T07:46:47Z","updated_at":"2016-03-19T07:46:47Z","body":"@djsegal Were you able to get devise_token_auth running in the engine ?"}}